home *** CD-ROM | disk | FTP | other *** search
Unknown | 1998-12-07 | 19.3 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| TrID
| MegaZeux game
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 44 4f 43 55 4d 45 4e 54 | 41 54 49 4f 20 66 69 6c |DOCUMENT|ATIO fil|
|00000010| 6c 73 20 61 08 2d 39 24 | 00 00 4d 54 52 4d 49 4e |ls a.-9$|..MTRMIN|
|00000020| 41 4c 20 44 52 49 56 45 | 52 20 57 52 49 54 45 52 |AL DRIVE|R WRITER|
|00000030| 53 0a 42 79 20 52 75 73 | 73 65 6c 6c 20 4c 61 6e |S.By Rus|sell Lan|
|00000040| 67 20 31 2f 39 30 0a 0a | 55 70 64 61 74 65 64 20 |g 1/90..|Updated |
|00000050| 66 6f 72 20 6e 65 77 20 | 66 69 6c 65 20 6c 61 79 |for new |file lay|
|00000060| 6f 75 74 20 62 79 20 64 | 72 64 20 34 2f 39 35 0a |out by d|rd 4/95.|
|00000070| 0a 50 61 72 61 67 72 61 | 70 68 73 20 61 62 6f 75 |.Paragra|phs abou|
|00000080| 74 20 69 6e 63 6c 75 73 | 69 6f 6e 20 6f 66 20 54 |t inclus|ion of T|
|00000090| 45 52 4d 5f 48 45 4c 50 | 20 61 64 64 65 64 20 62 |ERM_HELP| added b|
|000000a0| 79 20 72 63 63 20 31 2f | 39 36 0a 0a 4e 6f 20 63 |y rcc 1/|96..No c|
|000000b0| 68 61 6e 67 65 20 74 6f | 20 74 68 65 20 69 6e 74 |hange to| the int|
|000000c0| 65 72 66 61 63 65 20 62 | 65 74 77 65 65 6e 20 67 |erface b|etween g|
|000000d0| 6e 75 70 6c 6f 74 20 61 | 6e 64 20 74 68 65 20 74 |nuplot a|nd the t|
|000000e0| 65 72 6d 69 6e 61 6c 20 | 64 72 69 76 65 72 73 2c |erminal |drivers,|
|000000f0| 0a 62 75 74 20 77 65 20 | 77 6f 75 6c 64 20 6c 69 |.but we |would li|
|00000100| 6b 65 20 74 6f 20 6d 61 | 6b 65 20 74 68 65 20 74 |ke to ma|ke the t|
|00000110| 65 72 6d 69 6e 61 6c 20 | 64 72 69 76 65 72 73 20 |erminal |drivers |
|00000120| 73 74 61 6e 64 61 6c 6f | 6e 65 0a 0a 31 29 20 69 |standalo|ne..1) i|
|00000130| 6e 20 6f 72 64 65 72 20 | 6d 6f 76 65 20 74 68 65 |n order |move the|
|00000140| 20 73 75 70 70 6f 72 74 | 20 66 6f 72 20 74 68 65 | support| for the|
|00000150| 20 74 65 72 6d 69 6e 61 | 6c 20 64 72 69 76 65 72 | termina|l driver|
|00000160| 73 20 6f 75 74 73 69 64 | 65 20 6f 66 20 74 68 65 |s outsid|e of the|
|00000170| 0a 20 20 20 73 75 70 70 | 6f 72 74 20 66 6f 72 20 |. supp|ort for |
|00000180| 74 68 65 20 6d 61 69 6e | 20 70 72 6f 67 72 61 6d |the main| program|
|00000190| 2c 20 74 68 65 72 65 62 | 79 20 65 6e 63 6f 75 72 |, thereb|y encour|
|000001a0| 61 67 69 6e 67 20 61 20 | 6c 69 62 72 61 72 79 20 |aging a |library |
|000001b0| 6f 66 0a 20 20 20 63 6f | 6e 74 72 69 62 75 74 65 |of. co|ntribute|
|000001c0| 64 20 64 72 69 76 65 72 | 73 0a 32 29 20 54 6f 20 |d driver|s.2) To |
|000001d0| 6d 61 6b 65 20 69 74 20 | 65 61 73 79 20 66 6f 72 |make it |easy for|
|000001e0| 20 75 73 65 72 73 20 74 | 6f 20 61 64 64 20 63 6f | users t|o add co|
|000001f0| 6e 74 72 69 62 75 74 65 | 64 20 64 72 69 76 65 72 |ntribute|d driver|
|00000200| 73 2c 20 62 79 20 61 64 | 64 69 6e 67 0a 20 20 20 |s, by ad|ding. |
|00000210| 61 20 73 69 6e 67 6c 65 | 20 23 69 6e 63 6c 75 64 |a single| #includ|
|00000220| 65 20 6c 69 6e 65 20 74 | 6f 20 74 65 72 6d 2e 68 |e line t|o term.h|
|00000230| 0a 33 29 20 54 6f 20 61 | 6c 6c 6f 77 20 69 6e 64 |.3) To a|llow ind|
|00000240| 69 76 69 64 75 61 6c 20 | 63 6f 6d 70 69 6c 61 74 |ividual |compilat|
|00000250| 69 6f 6e 20 6f 6e 20 44 | 4f 53 2c 20 74 6f 20 73 |ion on D|OS, to s|
|00000260| 61 76 65 20 74 68 65 20 | 6f 76 65 72 6c 61 79 0a |ave the |overlay.|
|00000270| 20 20 20 6d 61 6e 61 67 | 65 72 20 66 72 6f 6d 20 | manag|er from |
|00000280| 68 61 76 69 6e 67 20 74 | 6f 20 6c 6f 61 64 20 5f |having t|o load _|
|00000290| 61 6c 6c 5f 20 64 72 69 | 76 65 72 73 20 74 6f 67 |all_ dri|vers tog|
|000002a0| 65 74 68 65 72 2e 0a 0a | 43 4f 52 52 45 43 54 49 |ether...|CORRECTI|
|000002b0| 4f 4e 20 2d 20 73 63 61 | 6c 65 28 29 20 69 6e 74 |ON - sca|le() int|
|000002c0| 65 72 66 61 63 65 20 69 | 73 20 6e 6f 20 6c 6f 6e |erface i|s no lon|
|000002d0| 67 65 72 20 73 75 70 70 | 6f 72 74 65 64 2c 20 73 |ger supp|orted, s|
|000002e0| 69 6e 63 65 20 69 74 0a | 69 73 20 69 6e 63 6f 6d |ince it.|is incom|
|000002f0| 70 61 74 69 62 6c 65 20 | 77 69 74 68 20 6d 75 6c |patible |with mul|
|00000300| 74 69 70 6c 6f 74 2e 0a | 0a 57 68 6f 6c 65 20 6f |tiplot..|.Whole o|
|00000310| 66 20 74 65 72 6d 69 6e | 61 6c 20 64 72 69 76 65 |f termin|al drive|
|00000320| 72 20 73 68 6f 75 6c 64 | 20 62 65 20 63 6f 6e 74 |r should| be cont|
|00000330| 61 69 6e 65 64 20 69 6e | 20 6f 6e 65 20 3c 64 72 |ained in| one <dr|
|00000340| 69 76 65 72 3e 2e 74 72 | 6d 20 66 69 6c 65 2c 0a |iver>.tr|m file,.|
|00000350| 77 69 74 68 20 61 20 66 | 61 69 72 6c 79 20 73 74 |with a f|airly st|
|00000360| 72 69 63 74 20 6c 61 79 | 6f 75 74 20 61 73 20 64 |rict lay|out as d|
|00000370| 65 74 61 69 6c 65 64 20 | 62 65 6c 6f 77 20 2d 20 |etailed |below - |
|00000380| 74 68 69 73 20 61 6c 6c | 6f 77 73 20 74 68 65 0a |this all|ows the.|
|00000390| 67 6e 75 70 6c 6f 74 20 | 6d 61 69 6e 74 61 69 6e |gnuplot |maintain|
|000003a0| 65 72 73 20 74 6f 20 63 | 68 61 6e 67 65 20 74 68 |ers to c|hange th|
|000003b0| 65 20 77 61 79 20 74 68 | 65 20 74 65 72 6d 69 6e |e way th|e termin|
|000003c0| 61 6c 20 64 72 69 76 65 | 72 73 20 61 72 65 0a 63 |al drive|rs are.c|
|000003d0| 6f 6d 70 69 6c 65 64 20 | 77 69 74 68 6f 75 74 20 |ompiled |without |
|000003e0| 68 61 76 69 6e 67 20 74 | 6f 20 63 68 61 6e 67 65 |having t|o change|
|000003f0| 20 74 68 65 20 64 72 69 | 76 65 72 73 20 74 68 65 | the dri|vers the|
|00000400| 6d 73 65 6c 76 65 73 2e | 0a 0a 74 65 72 6d 2e 68 |mselves.|..term.h|
|00000410| 2c 20 61 6e 64 20 74 68 | 65 72 65 66 6f 72 65 20 |, and th|erefore |
|00000420| 65 61 63 68 20 66 69 6c | 65 2e 74 72 6d 20 66 69 |each fil|e.trm fi|
|00000430| 6c 65 2c 20 6d 61 79 20 | 62 65 20 6c 6f 61 64 65 |le, may |be loade|
|00000440| 64 20 6d 6f 72 65 20 74 | 68 61 6e 20 6f 6e 63 65 |d more t|han once|
|00000450| 2c 0a 77 69 74 68 20 64 | 69 66 66 65 72 65 6e 74 |,.with d|ifferent|
|00000460| 20 73 65 63 74 69 6f 6e | 73 20 73 65 6c 65 63 74 | section|s select|
|00000470| 65 64 20 62 79 20 6d 61 | 63 72 6f 73 2e 0a 0a 45 |ed by ma|cros...E|
|00000480| 61 63 68 20 64 72 69 76 | 65 72 20 70 72 6f 76 69 |ach driv|er provi|
|00000490| 64 65 73 20 61 6c 6c 20 | 74 68 65 20 66 75 6e 63 |des all |the func|
|000004a0| 74 69 6f 6e 73 20 69 74 | 20 6e 65 65 64 73 2c 20 |tions it| needs, |
|000004b0| 61 6e 64 20 61 20 74 61 | 62 6c 65 20 6f 66 0a 66 |and a ta|ble of.f|
|000004c0| 75 6e 63 74 69 6f 6e 20 | 70 6f 69 6e 74 65 72 73 |unction |pointers|
|000004d0| 20 61 6e 64 20 6f 74 68 | 65 72 20 64 61 74 61 20 | and oth|er data |
|000004e0| 74 6f 20 69 6e 74 65 72 | 66 61 63 65 20 74 6f 20 |to inter|face to |
|000004f0| 67 6e 75 70 6c 6f 74 2e | 0a 54 68 65 20 74 61 62 |gnuplot.|.The tab|
|00000500| 6c 65 20 65 6e 74 72 79 | 20 69 73 20 63 75 72 72 |le entry| is curr|
|00000510| 65 6e 74 6c 79 20 64 65 | 66 69 6e 65 64 20 61 73 |ently de|fined as|
|00000520| 20 66 6f 6c 6c 6f 77 73 | 20 69 6e 20 70 6c 6f 74 | follows| in plot|
|00000530| 2e 68 3a 0a 0a 73 74 72 | 75 63 74 20 54 45 52 4d |.h:..str|uct TERM|
|00000540| 45 4e 54 52 59 20 7b 0a | 0a 2f 2a 20 72 65 71 75 |ENTRY {.|./* requ|
|00000550| 69 72 65 64 20 65 6e 74 | 72 69 65 73 20 2a 2f 0a |ired ent|ries */.|
|00000560| 0a 09 63 68 61 72 20 2a | 6e 61 6d 65 3b 0a 09 63 |..char *|name;..c|
|00000570| 68 61 72 20 2a 64 65 73 | 63 72 69 70 74 69 6f 6e |har *des|cription|
|00000580| 3b 0a 09 75 6e 73 69 67 | 6e 65 64 20 69 6e 74 20 |;..unsig|ned int |
|00000590| 78 6d 61 78 2c 79 6d 61 | 78 2c 76 5f 63 68 61 72 |xmax,yma|x,v_char|
|000005a0| 2c 68 5f 63 68 61 72 2c | 76 5f 74 69 63 2c 68 5f |,h_char,|v_tic,h_|
|000005b0| 74 69 63 3b 0a 0a 09 76 | 6f 69 64 20 28 2a 6f 70 |tic;...v|oid (*op|
|000005c0| 74 69 6f 6e 73 29 20 5f | 5f 50 52 4f 54 4f 28 28 |tions) _|_PROTO((|
|000005d0| 76 6f 69 64 29 29 3b 0a | 09 76 6f 69 64 20 28 2a |void));.|.void (*|
|000005e0| 69 6e 69 74 29 20 5f 5f | 50 52 4f 54 4f 28 28 76 |init) __|PROTO((v|
|000005f0| 6f 69 64 29 29 3b 0a 09 | 76 6f 69 64 20 28 2a 72 |oid));..|void (*r|
|00000600| 65 73 65 74 29 20 5f 5f | 50 52 4f 54 4f 28 28 76 |eset) __|PROTO((v|
|00000610| 6f 69 64 29 29 3b 0a 09 | 76 6f 69 64 20 28 2a 74 |oid));..|void (*t|
|00000620| 65 78 74 29 20 5f 5f 50 | 52 4f 54 4f 28 28 76 6f |ext) __P|ROTO((vo|
|00000630| 69 64 29 29 3b 0a 09 69 | 6e 74 20 28 2a 73 63 61 |id));..i|nt (*sca|
|00000640| 6c 65 29 20 5f 5f 50 52 | 4f 54 4f 28 28 64 6f 75 |le) __PR|OTO((dou|
|00000650| 62 6c 65 2c 20 64 6f 75 | 62 6c 65 29 29 3b 0a 09 |ble, dou|ble));..|
|00000660| 76 6f 69 64 20 28 2a 67 | 72 61 70 68 69 63 73 29 |void (*g|raphics)|
|00000670| 20 5f 5f 50 52 4f 54 4f | 28 28 76 6f 69 64 29 29 | __PROTO|((void))|
|00000680| 3b 0a 09 76 6f 69 64 20 | 28 2a 6d 6f 76 65 29 20 |;..void |(*move) |
|00000690| 5f 5f 50 52 4f 54 4f 28 | 28 75 6e 73 69 67 6e 65 |__PROTO(|(unsigne|
|000006a0| 64 20 69 6e 74 2c 20 75 | 6e 73 69 67 6e 65 64 20 |d int, u|nsigned |
|000006b0| 69 6e 74 29 29 3b 0a 09 | 76 6f 69 64 20 28 2a 76 |int));..|void (*v|
|000006c0| 65 63 74 6f 72 29 20 5f | 5f 50 52 4f 54 4f 28 28 |ector) _|_PROTO((|
|000006d0| 75 6e 73 69 67 6e 65 64 | 20 69 6e 74 2c 20 75 6e |unsigned| int, un|
|000006e0| 73 69 67 6e 65 64 20 69 | 6e 74 29 29 3b 0a 09 76 |signed i|nt));..v|
|000006f0| 6f 69 64 20 28 2a 6c 69 | 6e 65 74 79 70 65 29 20 |oid (*li|netype) |
|00000700| 5f 5f 50 52 4f 54 4f 28 | 28 69 6e 74 29 29 3b 0a |__PROTO(|(int));.|
|00000710| 09 76 6f 69 64 20 28 2a | 70 75 74 5f 74 65 78 74 |.void (*|put_text|
|00000720| 29 20 5f 5f 50 52 4f 54 | 4f 28 28 75 6e 73 69 67 |) __PROT|O((unsig|
|00000730| 6e 65 64 20 69 6e 74 2c | 20 75 6e 73 69 67 6e 65 |ned int,| unsigne|
|00000740| 64 20 69 6e 74 2c 63 68 | 61 72 2a 29 29 3b 0a 0a |d int,ch|ar*));..|
|00000750| 2f 2a 20 6f 70 74 69 6f | 6e 61 6c 20 65 6e 74 72 |/* optio|nal entr|
|00000760| 69 65 73 20 2a 2f 0a 0a | 09 69 6e 74 20 28 2a 74 |ies */..|.int (*t|
|00000770| 65 78 74 5f 61 6e 67 6c | 65 29 20 5f 5f 50 52 4f |ext_angl|e) __PRO|
|00000780| 54 4f 28 28 69 6e 74 29 | 29 3b 0a 09 69 6e 74 20 |TO((int)|);..int |
|00000790| 28 2a 6a 75 73 74 69 66 | 79 5f 74 65 78 74 29 20 |(*justif|y_text) |
|000007a0| 5f 5f 50 52 4f 54 4f 28 | 28 65 6e 75 6d 20 4a 55 |__PROTO(|(enum JU|
|000007b0| 53 54 49 46 59 29 29 3b | 0a 09 76 6f 69 64 20 28 |STIFY));|..void (|
|000007c0| 2a 70 6f 69 6e 74 29 20 | 5f 5f 50 52 4f 54 4f 28 |*point) |__PROTO(|
|000007d0| 28 75 6e 73 69 67 6e 65 | 64 20 69 6e 74 2c 20 75 |(unsigne|d int, u|
|000007e0| 6e 73 69 67 6e 65 64 20 | 69 6e 74 2c 69 6e 74 29 |nsigned |int,int)|
|000007f0| 29 3b 0a 09 76 6f 69 64 | 20 28 2a 61 72 72 6f 77 |);..void| (*arrow|
|00000800| 29 20 5f 5f 50 52 4f 54 | 4f 28 28 75 6e 73 69 67 |) __PROT|O((unsig|
|00000810| 6e 65 64 20 69 6e 74 2c | 20 75 6e 73 69 67 6e 65 |ned int,| unsigne|
|00000820| 64 20 69 6e 74 2c 20 75 | 6e 73 69 67 6e 65 64 20 |d int, u|nsigned |
|00000830| 69 6e 74 2c 0a 09 09 09 | 20 20 20 75 6e 73 69 67 |int,....| unsig|
|00000840| 6e 65 64 20 69 6e 74 2c | 20 69 6e 74 29 29 3b 0a |ned int,| int));.|
|00000850| 20 20 20 69 6e 74 20 28 | 2a 73 65 74 5f 66 6f 6e | int (|*set_fon|
|00000860| 74 29 20 5f 5f 50 52 4f | 54 4f 28 28 63 68 61 72 |t) __PRO|TO((char|
|00000870| 20 2a 66 6f 6e 74 29 29 | 3b 20 20 2f 2a 20 22 66 | *font))|; /* "f|
|00000880| 6f 6e 74 2c 73 69 7a 65 | 22 20 2a 2f 0a 09 76 6f |ont,size|" */..vo|
|00000890| 69 64 20 28 2a 73 65 74 | 5f 70 6f 69 6e 74 73 69 |id (*set|_pointsi|
|000008a0| 7a 65 29 20 5f 5f 50 52 | 4f 54 4f 28 28 64 6f 75 |ze) __PR|OTO((dou|
|000008b0| 62 6c 65 20 73 69 7a 65 | 29 29 3b 20 2f 2a 20 6e |ble size|)); /* n|
|000008c0| 6f 74 69 66 69 63 61 74 | 69 6f 6e 20 6f 66 20 73 |otificat|ion of s|
|000008d0| 65 74 20 70 6f 69 6e 74 | 73 69 7a 65 20 2a 2f 0a |et point|size */.|
|000008e0| 09 69 6e 74 20 66 6c 61 | 67 73 3b 20 2f 2a 20 76 |.int fla|gs; /* v|
|000008f0| 61 72 69 6f 75 73 20 66 | 6c 61 67 73 20 2a 2f 0a |arious f|lags */.|
|00000900| 20 20 20 76 6f 69 64 20 | 28 2a 73 75 73 70 65 6e | void |(*suspen|
|00000910| 64 29 20 5f 5f 50 52 4f | 54 4f 28 28 76 6f 69 64 |d) __PRO|TO((void|
|00000920| 29 29 3b 20 2f 2a 20 61 | 66 74 65 72 20 6f 6e 65 |)); /* a|fter one|
|00000930| 20 70 6c 6f 74 20 6f 66 | 20 6d 75 6c 74 69 70 6c | plot of| multipl|
|00000940| 6f 74 20 2a 2f 0a 20 20 | 20 76 6f 69 64 20 28 2a |ot */. | void (*|
|00000950| 72 65 73 75 6d 65 29 20 | 5f 5f 50 52 4f 54 4f 28 |resume) |__PROTO(|
|00000960| 28 76 6f 69 64 29 29 3b | 20 20 2f 2a 20 62 65 66 |(void));| /* bef|
|00000970| 6f 72 65 20 73 75 62 73 | 65 71 75 65 6e 74 20 70 |ore subs|equent p|
|00000980| 6c 6f 74 20 6f 66 20 6d | 75 6c 74 69 70 6c 6f 74 |lot of m|ultiplot|
|00000990| 20 2a 2f 0a 20 20 20 76 | 6f 69 64 20 28 2a 62 6f | */. v|oid (*bo|
|000009a0| 78 66 69 6c 6c 29 20 5f | 5f 50 52 4f 54 4f 28 28 |xfill) _|_PROTO((|
|000009b0| 69 6e 74 20 73 74 79 6c | 65 2c 20 75 6e 73 69 67 |int styl|e, unsig|
|000009c0| 6e 65 64 20 69 6e 74 20 | 78 31 2c 20 75 6e 73 69 |ned int |x1, unsi|
|000009d0| 67 6e 65 64 20 69 6e 74 | 20 79 31 2c 20 75 6e 73 |gned int| y1, uns|
|000009e0| 69 67 6e 65 64 20 69 6e | 74 20 77 69 64 74 68 2c |igned in|t width,|
|000009f0| 20 75 6e 73 69 67 6e 65 | 64 20 69 6e 74 20 68 65 | unsigne|d int he|
|00000a00| 69 67 68 74 29 29 3b 20 | 2f 2a 20 63 6c 65 61 72 |ight)); |/* clear|
|00000a10| 20 70 61 72 74 20 6f 66 | 20 6d 75 6c 74 69 70 6c | part of| multipl|
|00000a20| 6f 74 20 2a 2f 0a 20 20 | 20 76 6f 69 64 20 28 2a |ot */. | void (*|
|00000a30| 6c 69 6e 65 77 69 64 74 | 68 29 20 5f 5f 50 52 4f |linewidt|h) __PRO|
|00000a40| 54 4f 28 28 64 6f 75 62 | 6c 65 20 6c 69 6e 65 77 |TO((doub|le linew|
|00000a50| 69 64 74 68 29 29 3b 0a | 20 20 20 76 6f 69 64 20 |idth));.| void |
|00000a60| 28 2a 70 6f 69 6e 74 73 | 69 7a 65 29 20 5f 5f 50 |(*points|ize) __P|
|00000a70| 52 4f 54 4f 28 28 64 6f | 75 62 6c 65 20 70 6f 69 |ROTO((do|uble poi|
|00000a80| 6e 74 73 69 7a 65 29 29 | 3b 0a 7d 3b 0a 0a 4f 6e |ntsize))|;.};..On|
|00000a90| 65 20 63 6f 6e 73 65 71 | 75 65 6e 63 65 20 6f 66 |e conseq|uence of|
|00000aa0| 20 28 31 29 20 69 73 20 | 74 68 61 74 20 77 65 20 | (1) is |that we |
|00000ab0| 77 6f 75 6c 64 20 6c 69 | 6b 65 20 64 72 69 76 65 |would li|ke drive|
|00000ac0| 72 73 20 74 6f 20 62 65 | 20 62 61 63 6b 77 61 72 |rs to be| backwar|
|00000ad0| 64 73 0a 63 6f 6d 70 61 | 74 69 62 6c 65 20 2d 20 |ds.compa|tible - |
|00000ae0| 64 72 69 76 65 72 73 20 | 69 6e 20 74 68 65 20 63 |drivers |in the c|
|00000af0| 6f 72 72 65 63 74 20 66 | 6f 72 6d 20 62 65 6c 6f |orrect f|orm belo|
|00000b00| 77 20 73 68 6f 75 6c 64 | 20 77 6f 72 6b 20 69 6e |w should| work in|
|00000b10| 20 66 75 74 75 72 65 0a | 76 65 72 73 69 6f 6e 73 | future.|versions|
|00000b20| 20 6f 66 20 67 6e 75 70 | 6c 6f 74 20 77 69 74 68 | of gnup|lot with|
|00000b30| 6f 75 74 20 63 68 61 6e | 67 65 2e 20 43 20 63 6f |out chan|ge. C co|
|00000b40| 6d 70 69 6c 65 72 73 20 | 67 75 61 72 61 6e 74 65 |mpilers |guarante|
|00000b50| 65 20 74 6f 20 66 69 6c | 6c 0a 75 6e 69 74 69 61 |e to fil|l.unitia|
|00000b60| 6c 69 73 65 64 20 6d 65 | 6d 62 65 72 73 20 6f 66 |lised me|mbers of|
|00000b70| 20 61 20 73 74 72 75 63 | 74 75 72 65 20 74 6f 20 | a struc|ture to |
|00000b80| 7a 65 72 6f 2c 20 73 6f | 20 67 6e 75 70 6c 6f 74 |zero, so| gnuplot|
|00000b90| 20 63 61 6e 20 64 65 74 | 65 63 74 20 6f 6c 64 0a | can det|ect old.|
|00000ba0| 64 72 69 76 65 72 73 2c | 20 69 6e 20 77 68 69 63 |drivers,| in whic|
|00000bb0| 68 20 66 69 65 6c 64 73 | 20 68 61 76 65 20 6e 6f |h fields| have no|
|00000bc0| 74 20 62 65 65 6e 20 69 | 6e 69 74 61 6c 69 73 65 |t been i|nitalise|
|00000bd0| 64 2c 20 61 6e 64 20 63 | 61 6e 20 70 6f 69 6e 74 |d, and c|an point|
|00000be0| 0a 6e 65 77 20 69 6e 74 | 65 72 66 61 63 65 20 65 |.new int|erface e|
|00000bf0| 6e 74 72 79 20 70 6f 69 | 6e 74 65 72 73 20 74 6f |ntry poi|nters to|
|00000c00| 20 64 75 6d 6d 79 20 66 | 75 6e 63 74 69 6f 6e 73 | dummy f|unctions|
|00000c10| 2e 0a 0a 57 65 20 63 61 | 6e 20 61 64 64 20 66 69 |...We ca|n add fi|
|00000c20| 65 6c 64 73 20 74 6f 20 | 74 68 65 20 74 65 72 6d |elds to |the term|
|00000c30| 69 6e 61 6c 20 73 74 72 | 75 63 74 75 72 65 2c 20 |inal str|ucture, |
|00000c40| 62 75 74 20 6f 6e 6c 79 | 20 61 74 20 74 68 65 20 |but only| at the |
|00000c50| 65 6e 64 20 6f 66 20 74 | 68 65 20 6c 69 73 74 2e |end of t|he list.|
|00000c60| 0a 49 66 20 79 6f 75 20 | 64 65 73 69 67 6e 20 61 |.If you |design a|
|00000c70| 20 74 65 72 6d 69 6e 61 | 6c 20 74 68 61 74 20 63 | termina|l that c|
|00000c80| 61 6e 74 20 77 6f 72 6b | 20 77 69 74 68 6f 75 74 |ant work| without|
|00000c90| 20 61 20 6e 65 77 20 69 | 6e 74 65 72 66 61 63 65 | a new i|nterface|
|00000ca0| 20 62 65 69 6e 67 20 64 | 65 66 69 6e 65 64 2c 0a | being d|efined,.|
|00000cb0| 61 6e 64 20 63 6f 6e 73 | 65 71 75 65 6e 74 20 63 |and cons|equent c|
|00000cc0| 68 61 6e 67 65 73 20 74 | 6f 20 74 68 65 20 6d 61 |hanges t|o the ma|
|00000cd0| 69 6e 20 67 6e 75 70 6c | 6f 74 20 73 6f 75 72 63 |in gnupl|ot sourc|
|00000ce0| 65 2c 20 70 6c 65 61 73 | 65 20 63 6f 6e 74 61 63 |e, pleas|e contac|
|00000cf0| 74 0a 62 75 67 2d 67 6e | 75 70 6c 6f 74 40 64 61 |t.bug-gn|uplot@da|
|00000d00| 72 74 6d 6f 75 74 68 2e | 65 64 75 20 73 69 6d 70 |rtmouth.|edu simp|
|00000d10| 6c 79 20 74 6f 20 65 6e | 73 75 72 65 20 74 68 61 |ly to en|sure tha|
|00000d20| 74 20 79 6f 75 20 68 61 | 76 65 20 74 68 65 20 6d |t you ha|ve the m|
|00000d30| 6f 73 74 0a 75 70 20 74 | 6f 20 64 61 74 65 20 64 |ost.up t|o date d|
|00000d40| 65 66 6e 20 6f 66 20 74 | 68 65 20 74 65 72 6d 69 |efn of t|he termi|
|00000d50| 6e 61 6c 20 73 74 72 75 | 63 74 75 72 65 2e 20 41 |nal stru|cture. A|
|00000d60| 6c 73 6f 2c 20 70 6c 65 | 61 73 65 20 65 6e 73 75 |lso, ple|ase ensu|
|00000d70| 72 65 20 74 68 61 74 0a | 74 68 65 20 27 73 65 74 |re that.|the 'set|
|00000d80| 20 74 65 72 6d 27 20 63 | 6f 6d 6d 61 6e 64 20 63 | term' c|ommand c|
|00000d90| 68 65 63 6b 73 20 66 6f | 72 20 30 20 76 61 6c 75 |hecks fo|r 0 valu|
|00000da0| 65 73 20 69 6e 20 61 64 | 64 65 64 20 66 69 65 6c |es in ad|ded fiel|
|00000db0| 64 73 20 77 68 65 6e 20 | 61 6e 0a 6f 6c 64 20 64 |ds when |an.old d|
|00000dc0| 72 69 76 65 72 20 69 73 | 20 73 65 6c 65 63 74 65 |river is| selecte|
|00000dd0| 64 2c 20 61 6e 64 20 61 | 20 70 6f 69 6e 74 65 72 |d, and a| pointer|
|00000de0| 20 74 6f 20 61 20 73 75 | 69 74 61 62 6c 65 20 27 | to a su|itable '|
|00000df0| 63 61 6e 74 20 64 6f 27 | 20 66 75 6e 63 74 69 6f |cant do'| functio|
|00000e00| 6e 0a 69 73 20 70 72 6f | 76 69 64 65 64 2e 20 49 |n.is pro|vided. I|
|00000e10| 74 20 69 73 20 74 68 65 | 72 65 66 6f 72 65 20 6e |t is the|refore n|
|00000e20| 6f 74 20 72 65 71 75 69 | 72 65 64 20 28 61 6e 64 |ot requi|red (and|
|00000e30| 20 69 6e 20 66 61 63 74 | 20 6e 6f 74 20 70 6f 73 | in fact| not pos|
|00000e40| 73 69 62 6c 65 29 0a 74 | 6f 20 61 64 64 20 70 61 |sible).t|o add pa|
|00000e50| 64 64 69 6e 67 20 66 69 | 65 6c 64 73 20 74 6f 20 |dding fi|elds to |
|00000e60| 74 68 65 20 65 6e 64 20 | 6f 66 20 61 6c 6c 20 64 |the end |of all d|
|00000e70| 72 69 76 65 72 73 2e 0a | 0a 53 69 6d 69 6c 61 72 |rivers..|.Similar|
|00000e80| 6c 79 2c 20 69 66 20 79 | 6f 75 20 61 64 64 20 61 |ly, if y|ou add a|
|00000e90| 6e 20 6f 70 74 69 6f 6e | 61 6c 20 66 69 65 6c 64 |n option|al field|
|00000ea0| 20 74 6f 20 61 6e 20 6f | 6c 64 20 64 72 69 76 65 | to an o|ld drive|
|00000eb0| 72 2c 20 74 61 6b 65 20 | 63 61 72 65 0a 74 6f 20 |r, take |care.to |
|00000ec0| 65 6e 73 75 72 65 20 74 | 68 61 74 20 61 6c 6c 20 |ensure t|hat all |
|00000ed0| 69 6e 74 65 72 76 65 6e | 69 6e 67 20 66 69 65 6c |interven|ing fiel|
|00000ee0| 64 73 20 61 72 65 20 70 | 61 64 64 65 64 20 77 69 |ds are p|added wi|
|00000ef0| 74 68 20 7a 65 72 6f 73 | 2e 0a 0a 53 6f 6d 65 20 |th zeros|...Some |
|00000f00| 6f 66 20 74 68 65 20 61 | 62 6f 76 65 20 66 69 65 |of the a|bove fie|
|00000f10| 6c 64 73 20 61 72 65 20 | 72 65 71 75 69 72 65 64 |lds are |required|
|00000f20| 20 2d 20 74 68 69 73 20 | 73 68 6f 75 6c 64 20 6e | - this |should n|
|00000f30| 6f 74 20 62 65 20 61 20 | 70 72 6f 62 6c 65 6d 2c |ot be a |problem,|
|00000f40| 0a 73 69 6e 63 65 20 74 | 68 65 79 20 77 65 72 65 |.since t|hey were|
|00000f50| 20 61 6c 6c 20 72 65 71 | 75 69 72 65 64 20 69 6e | all req|uired in|
|00000f60| 20 65 61 72 6c 69 65 72 | 20 72 65 6c 65 61 73 65 | earlier| release|
|00000f70| 73 20 6f 66 20 67 6e 75 | 70 6c 6f 74 2e 0a 54 68 |s of gnu|plot..Th|
|00000f80| 65 20 6c 61 74 65 72 20 | 66 69 65 6c 64 73 20 61 |e later |fields a|
|00000f90| 72 65 20 69 6e 74 65 72 | 66 61 63 65 73 20 74 6f |re inter|faces to|
|00000fa0| 20 63 61 70 61 62 69 6c | 69 74 69 65 73 20 74 68 | capabil|ities th|
|00000fb0| 61 74 20 6e 6f 74 20 61 | 6c 6c 20 64 65 76 69 63 |at not a|ll devic|
|00000fc0| 65 73 0a 63 61 6e 20 64 | 6f 2c 20 6f 72 20 66 6f |es.can d|o, or fo|
|00000fd0| 72 20 77 68 69 63 68 20 | 74 68 65 20 67 65 6e 65 |r which |the gene|
|00000fe0| 72 69 63 20 72 6f 75 74 | 69 6e 65 73 20 70 72 6f |ric rout|ines pro|
|00000ff0| 76 69 64 65 64 20 73 68 | 6f 75 6c 64 20 62 65 20 |vided sh|ould be |
|00001000| 61 64 65 71 75 61 74 65 | 2e 0a 54 68 65 72 65 20 |adequate|..There |
|00001010| 61 72 65 20 73 65 76 65 | 72 61 6c 20 6e 75 6c 6c |are seve|ral null|
|00001020| 20 28 27 63 61 6e 74 20 | 64 6f 27 29 20 66 75 6e | ('cant |do') fun|
|00001030| 63 74 69 6f 6e 73 20 70 | 72 6f 76 69 64 65 64 20 |ctions p|rovided |
|00001040| 62 79 20 74 65 72 6d 2e | 63 20 77 68 69 63 68 0a |by term.|c which.|
|00001050| 61 20 64 72 69 76 65 72 | 20 63 61 6e 20 72 65 66 |a driver| can ref|
|00001060| 65 72 65 6e 63 65 20 69 | 6e 20 74 68 65 20 74 61 |erence i|n the ta|
|00001070| 62 6c 65 2e 20 53 69 6d | 69 6c 61 72 6c 79 2c 20 |ble. Sim|ilarly, |
|00001080| 66 6f 72 20 62 69 74 6d | 61 70 20 64 65 76 69 63 |for bitm|ap devic|
|00001090| 65 73 2c 20 74 68 65 72 | 65 0a 61 72 65 20 67 65 |es, ther|e.are ge|
|000010a0| 6e 65 72 69 63 20 72 6f | 75 74 69 6e 65 73 20 66 |neric ro|utines f|
|000010b0| 6f 72 20 6c 69 6e 65 73 | 20 61 6e 64 20 74 65 78 |or lines| and tex|
|000010c0| 74 20 70 72 6f 76 69 64 | 65 64 20 62 79 20 62 69 |t provid|ed by bi|
|000010d0| 74 6d 61 70 2e 63 0a 0a | 0a 0a 48 65 72 65 27 73 |tmap.c..|..Here's|
|000010e0| 20 61 20 62 72 69 65 66 | 20 64 65 73 63 72 69 70 | a brief| descrip|
|000010f0| 74 69 6f 6e 20 6f 66 20 | 65 61 63 68 20 76 61 72 |tion of |each var|
|00001100| 69 61 62 6c 65 3a 0a 0a | 54 68 65 20 63 68 61 72 |iable:..|The char|
|00001110| 20 2a 6e 61 6d 65 20 69 | 73 20 61 20 70 6f 69 6e | *name i|s a poin|
|00001120| 74 65 72 20 74 6f 20 61 | 20 73 74 72 69 6e 67 20 |ter to a| string |
|00001130| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 74 68 65 20 6e |containi|ng the n|
|00001140| 61 6d 65 0a 6f 66 20 74 | 68 65 20 74 65 72 6d 69 |ame.of t|he termi|
|00001150| 6e 61 6c 2e 20 20 54 68 | 69 73 20 6e 61 6d 65 20 |nal. Th|is name |
|00001160| 69 73 20 75 73 65 64 20 | 62 79 20 74 68 65 20 27 |is used |by the '|
|00001170| 73 65 74 20 74 65 72 6d | 69 6e 61 6c 27 20 61 6e |set term|inal' an|
|00001180| 64 20 0a 27 73 68 6f 77 | 20 74 65 72 6d 69 6e 61 |d .'show| termina|
|00001190| 6c 27 20 63 6f 6d 6d 61 | 6e 64 73 2e 20 20 0a 54 |l' comma|nds. .T|
|000011a0| 68 65 20 6e 61 6d 65 20 | 6d 75 73 74 20 62 65 20 |he name |must be |
|000011b0| 75 6e 69 71 75 65 20 61 | 6e 64 20 6d 75 73 74 20 |unique a|nd must |
|000011c0| 6e 6f 74 20 62 65 20 63 | 6f 6e 66 75 73 65 64 20 |not be c|onfused |
|000011d0| 77 69 74 68 20 61 6e 20 | 61 62 62 72 65 76 69 61 |with an |abbrevia|
|000011e0| 74 69 6f 6e 20 0a 6f 66 | 20 61 6e 6f 74 68 65 72 |tion .of| another|
|000011f0| 20 6e 61 6d 65 2e 20 20 | 46 6f 72 20 65 78 61 6d | name. |For exam|
|00001200| 70 6c 65 20 69 66 20 74 | 68 65 20 6e 61 6d 65 20 |ple if t|he name |
|00001210| 22 70 6f 73 74 73 63 72 | 69 70 74 22 20 65 78 69 |"postscr|ipt" exi|
|00001220| 73 74 73 2c 20 69 74 20 | 69 73 20 6e 6f 74 0a 70 |sts, it |is not.p|
|00001230| 6f 73 73 69 62 6c 65 20 | 74 6f 20 68 61 76 65 20 |ossible |to have |
|00001240| 61 6e 6f 74 68 65 72 20 | 6e 61 6d 65 20 22 70 6f |another |name "po|
|00001250| 73 74 73 63 72 69 70 74 | 32 22 2e 0a 4b 65 65 70 |stscript|2"..Keep|
|00001260| 20 74 68 65 20 6e 61 6d | 65 20 75 6e 64 65 72 20 | the nam|e under |
|00001270| 31 35 20 63 68 61 72 61 | 63 74 65 72 73 2e 0a 0a |15 chara|cters...|
|00001280| 54 68 65 20 63 68 61 72 | 20 2a 64 65 73 63 72 69 |The char| *descri|
|00001290| 70 74 69 6f 6e 20 69 73 | 20 61 20 70 6f 69 6e 74 |ption is| a point|
|000012a0| 65 72 20 74 6f 20 61 20 | 73 74 72 69 6e 67 20 63 |er to a |string c|
|000012b0| 6f 6e 74 61 69 6e 69 6e | 67 20 61 0a 64 65 73 63 |ontainin|g a.desc|
|000012c0| 72 69 70 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 74 |ription |of the t|
|000012d0| 65 72 6d 69 6e 61 6c 2c | 20 77 68 69 63 68 20 69 |erminal,| which i|
|000012e0| 73 20 64 69 73 70 6c 61 | 79 65 64 20 69 6e 20 72 |s displa|yed in r|
|000012f0| 65 73 70 6f 6e 73 65 0a | 74 6f 20 74 68 65 20 27 |esponse.|to the '|
|00001300| 73 65 74 20 74 65 72 6d | 69 6e 61 6c 27 20 63 6f |set term|inal' co|
|00001310| 6d 6d 61 6e 64 2e 20 20 | 0a 4b 65 65 70 20 74 68 |mmand. |.Keep th|
|00001320| 65 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 75 6e |e descri|ption un|
|00001330| 64 65 72 20 36 30 20 63 | 68 61 72 61 63 74 65 72 |der 60 c|haracter|
|00001340| 73 2e 0a 0a 78 6d 61 78 | 20 69 73 20 74 68 65 20 |s...xmax| is the |
|00001350| 6d 61 78 69 6d 75 6d 20 | 6e 75 6d 62 65 72 20 6f |maximum |number o|
|00001360| 66 20 70 6f 69 6e 74 73 | 20 69 6e 20 74 68 65 20 |f points| in the |
|00001370| 78 20 64 69 72 65 63 74 | 69 6f 6e 2e 20 20 0a 54 |x direct|ion. .T|
|00001380| 68 65 20 72 61 6e 67 65 | 20 6f 66 20 70 6f 69 6e |he range| of poin|
|00001390| 74 73 20 75 73 65 64 20 | 62 79 20 67 6e 75 70 6c |ts used |by gnupl|
|000013a0| 6f 74 20 69 73 20 30 20 | 74 6f 20 78 6d 61 78 2d |ot is 0 |to xmax-|
|000013b0| 31 2e 0a 0a 79 6d 61 78 | 20 69 73 20 74 68 65 20 |1...ymax| is the |
|000013c0| 6d 61 78 69 6d 75 6d 20 | 6e 75 6d 62 65 72 20 6f |maximum |number o|
|000013d0| 66 20 70 6f 69 6e 74 73 | 20 69 6e 20 74 68 65 20 |f points| in the |
|000013e0| 79 20 64 69 72 65 63 74 | 69 6f 6e 2e 20 20 0a 54 |y direct|ion. .T|
|000013f0| 68 65 20 72 61 6e 67 65 | 20 6f 66 20 70 6f 69 6e |he range| of poin|
|00001400| 74 73 20 75 73 65 64 20 | 62 79 20 67 6e 75 70 6c |ts used |by gnupl|
|00001410| 6f 74 20 69 73 20 30 20 | 74 6f 20 79 6d 61 78 2d |ot is 0 |to ymax-|
|00001420| 31 2e 0a 0a 76 5f 63 68 | 61 72 20 69 73 20 74 68 |1...v_ch|ar is th|
|00001430| 65 20 68 65 69 67 68 74 | 20 6f 66 20 63 68 61 72 |e height| of char|
|00001440| 61 63 74 65 72 73 2c 20 | 69 6e 20 74 68 65 20 73 |acters, |in the s|
|00001450| 61 6d 65 20 75 6e 69 74 | 73 20 61 73 20 78 6d 61 |ame unit|s as xma|
|00001460| 78 20 61 6e 64 20 79 6d | 61 78 2e 0a 54 68 65 20 |x and ym|ax..The |
|00001470| 62 6f 72 64 65 72 20 66 | 6f 72 20 6c 61 62 65 6c |border f|or label|
|00001480| 6c 69 6e 67 20 61 74 20 | 74 68 65 20 74 6f 70 20 |ling at |the top |
|00001490| 61 6e 64 20 62 6f 74 74 | 6f 6d 20 6f 66 20 74 68 |and bott|om of th|
|000014a0| 65 20 70 6c 6f 74 20 69 | 73 20 0a 63 61 6c 63 75 |e plot i|s .calcu|
|000014b0| 6c 61 74 65 64 20 75 73 | 69 6e 67 20 76 5f 63 68 |lated us|ing v_ch|
|000014c0| 61 72 2e 20 20 0a 76 5f | 63 68 61 72 20 69 73 20 |ar. .v_|char is |
|000014d0| 75 73 65 64 20 61 73 20 | 74 68 65 20 76 65 72 74 |used as |the vert|
|000014e0| 69 63 61 6c 20 6c 69 6e | 65 20 73 70 61 63 69 6e |ical lin|e spacin|
|000014f0| 67 20 66 6f 72 20 63 68 | 61 72 61 63 74 65 72 73 |g for ch|aracters|
|00001500| 2e 0a 0a 68 5f 63 68 61 | 72 20 69 73 20 74 68 65 |...h_cha|r is the|
|00001510| 20 77 69 64 74 68 20 6f | 66 20 63 68 61 72 61 63 | width o|f charac|
|00001520| 74 65 72 73 2c 20 69 6e | 20 74 68 65 20 73 61 6d |ters, in| the sam|
|00001530| 65 20 75 6e 69 74 73 20 | 61 73 20 78 6d 61 78 20 |e units |as xmax |
|00001540| 61 6e 64 20 79 6d 61 78 | 2e 0a 54 68 65 20 62 6f |and ymax|..The bo|
|00001550| 72 64 65 72 20 66 6f 72 | 20 6c 61 62 65 6c 6c 69 |rder for| labelli|
|00001560| 6e 67 20 61 74 20 74 68 | 65 20 6c 65 66 74 20 61 |ng at th|e left a|
|00001570| 6e 64 20 72 69 67 68 74 | 20 6f 66 20 74 68 65 20 |nd right| of the |
|00001580| 70 6c 6f 74 20 69 73 20 | 0a 63 61 6c 63 75 6c 61 |plot is |.calcula|
|00001590| 74 65 64 20 75 73 69 6e | 67 20 68 5f 63 68 61 72 |ted usin|g h_char|
|000015a0| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2e 0a 49 |, for ex|ample..I|
|000015b0| 66 20 74 68 65 20 5f 6a | 75 73 74 69 66 79 5f 74 |f the _j|ustify_t|
|000015c0| 65 78 74 20 66 75 6e 63 | 74 69 6f 6e 20 72 65 74 |ext func|tion ret|
|000015d0| 75 72 6e 73 20 46 41 4c | 53 45 2c 20 68 5f 63 68 |urns FAL|SE, h_ch|
|000015e0| 61 72 20 69 73 20 75 73 | 65 64 20 74 6f 20 6a 75 |ar is us|ed to ju|
|000015f0| 73 74 69 66 79 20 0a 74 | 65 78 74 20 72 69 67 68 |stify .t|ext righ|
|00001600| 74 20 6f 72 20 63 65 6e | 74 72 65 2e 20 20 49 66 |t or cen|tre. If|
|00001610| 20 63 68 61 72 61 63 74 | 65 72 73 20 61 72 65 20 | charact|ers are |
|00001620| 6e 6f 74 20 66 69 78 65 | 64 20 77 69 64 74 68 2c |not fixe|d width,|
|00001630| 20 74 68 65 6e 20 74 68 | 65 20 0a 5f 6a 75 73 74 | then th|e ._just|
|00001640| 69 66 79 5f 74 65 78 74 | 20 66 75 6e 63 74 69 6f |ify_text| functio|
|00001650| 6e 20 6d 75 73 74 20 63 | 6f 72 72 65 63 74 6c 79 |n must c|orrectly|
|00001660| 20 6a 75 73 74 69 66 79 | 20 74 68 65 20 74 65 78 | justify| the tex|
|00001670| 74 2e 0a 0a 76 5f 74 69 | 63 20 69 73 20 74 68 65 |t...v_ti|c is the|
|00001680| 20 76 65 72 74 69 63 61 | 6c 20 73 69 7a 65 20 6f | vertica|l size o|
|00001690| 66 20 74 69 63 73 20 61 | 6c 6f 6e 67 20 74 68 65 |f tics a|long the|
|000016a0| 20 78 20 61 78 69 73 2c | 20 0a 69 6e 20 74 68 65 | x axis,| .in the|
|000016b0| 20 73 61 6d 65 20 75 6e | 69 74 73 20 61 73 20 79 | same un|its as y|
|000016c0| 6d 61 78 2e 0a 0a 68 5f | 74 69 63 20 69 73 20 74 |max...h_|tic is t|
|000016d0| 68 65 20 68 6f 72 69 7a | 6f 6e 74 61 6c 20 73 69 |he horiz|ontal si|
|000016e0| 7a 65 20 6f 66 20 74 69 | 63 73 20 61 6c 6f 6e 67 |ze of ti|cs along|
|000016f0| 20 74 68 65 20 79 20 61 | 78 69 73 2c 20 0a 69 6e | the y a|xis, .in|
|00001700| 20 74 68 65 20 73 61 6d | 65 20 75 6e 69 74 73 20 | the sam|e units |
|00001710| 61 73 20 78 6d 61 78 2e | 0a 0a 76 5f 74 69 63 20 |as xmax.|..v_tic |
|00001720| 61 6e 64 20 68 5f 74 69 | 63 20 73 68 6f 75 6c 64 |and h_ti|c should|
|00001730| 20 67 69 76 65 20 74 69 | 63 73 20 6f 66 20 74 68 | give ti|cs of th|
|00001740| 65 20 73 61 6d 65 20 70 | 68 79 73 69 63 61 6c 20 |e same p|hysical |
|00001750| 73 69 7a 65 20 6f 6e 20 | 74 68 65 0a 6f 75 74 70 |size on |the.outp|
|00001760| 75 74 2e 20 54 68 65 20 | 72 61 74 69 6f 20 6f 66 |ut. The |ratio of|
|00001770| 20 74 68 65 73 65 20 74 | 77 6f 20 71 75 61 6e 74 | these t|wo quant|
|00001780| 69 74 69 65 73 20 69 73 | 20 75 73 65 64 20 62 79 |ities is| used by|
|00001790| 20 67 6e 75 70 6c 6f 74 | 20 74 6f 20 73 65 74 20 | gnuplot| to set |
|000017a0| 74 68 65 0a 61 73 70 65 | 63 74 20 72 61 74 69 6f |the.aspe|ct ratio|
|000017b0| 20 74 6f 20 31 20 73 6f | 20 74 68 61 74 20 63 69 | to 1 so| that ci|
|000017c0| 72 63 6c 65 73 20 61 70 | 70 65 61 72 20 63 69 72 |rcles ap|pear cir|
|000017d0| 63 75 6c 61 72 20 77 68 | 65 6e 20 27 73 65 74 20 |cular wh|en 'set |
|000017e0| 73 69 7a 65 20 73 71 75 | 61 72 65 27 0a 69 73 20 |size squ|are'.is |
|000017f0| 61 63 74 69 76 65 2e 0a | 0a 41 6c 6c 20 74 68 65 |active..|.All the|
|00001800| 20 61 62 6f 76 65 20 76 | 61 6c 75 65 73 20 6e 65 | above v|alues ne|
|00001810| 65 64 20 6e 6f 74 20 62 | 65 20 73 74 61 74 69 63 |ed not b|e static|
|00001820| 20 2d 20 76 61 6c 75 65 | 73 20 63 61 6e 20 62 65 | - value|s can be|
|00001830| 20 73 75 62 73 74 69 74 | 75 74 65 64 0a 69 6e 74 | substit|uted.int|
|00001840| 6f 20 74 68 65 20 74 61 | 62 6c 65 20 64 75 72 69 |o the ta|ble duri|
|00001850| 6e 67 20 74 65 72 6d 69 | 6e 61 6c 20 69 6e 69 74 |ng termi|nal init|
|00001860| 69 61 6c 69 73 61 74 69 | 6f 6e 2c 20 62 61 73 65 |ialisati|on, base|
|00001870| 64 20 6f 6e 20 6f 70 74 | 69 6f 6e 73 20 66 6f 72 |d on opt|ions for|
|00001880| 0a 65 78 61 6d 70 6c 65 | 2e 0a 0a 0a 0a 48 65 72 |.example|.....Her|
|00001890| 65 27 73 20 61 20 62 72 | 69 65 66 20 64 65 73 63 |e's a br|ief desc|
|000018a0| 72 69 70 74 69 6f 6e 20 | 6f 66 20 77 68 61 74 20 |ription |of what |
|000018b0| 65 61 63 68 20 74 65 72 | 6d 2e 63 20 66 75 6e 63 |each ter|m.c func|
|000018c0| 74 69 6f 6e 20 64 6f 65 | 73 3a 0a 0a 5f 6f 70 74 |tion doe|s:.._opt|
|000018d0| 69 6f 6e 73 28 29 20 20 | 43 61 6c 6c 65 64 20 77 |ions() |Called w|
|000018e0| 68 65 6e 20 74 65 72 6d | 69 6e 61 6c 20 74 79 70 |hen term|inal typ|
|000018f0| 65 20 69 73 20 73 65 6c | 65 63 74 65 64 2e 20 20 |e is sel|ected. |
|00001900| 0a 54 68 69 73 20 70 72 | 6f 63 65 64 75 72 65 20 |.This pr|ocedure |
|00001910| 73 68 6f 75 6c 64 20 70 | 61 72 73 65 20 6f 70 74 |should p|arse opt|
|00001920| 69 6f 6e 73 20 6f 6e 20 | 74 68 65 20 63 6f 6d 6d |ions on |the comm|
|00001930| 61 6e 64 20 6c 69 6e 65 | 2e 20 20 41 20 6c 69 73 |and line|. A lis|
|00001940| 74 20 6f 66 20 74 68 65 | 20 0a 63 75 72 72 65 6e |t of the| .curren|
|00001950| 74 6c 79 20 73 65 6c 65 | 63 74 65 64 20 6f 70 74 |tly sele|cted opt|
|00001960| 69 6f 6e 73 20 73 68 6f | 75 6c 64 20 62 65 20 73 |ions sho|uld be s|
|00001970| 74 6f 72 65 64 20 69 6e | 20 74 65 72 6d 5f 6f 70 |tored in| term_op|
|00001980| 74 69 6f 6e 73 5b 5d 20 | 69 6e 20 61 20 66 6f 72 |tions[] |in a for|
|00001990| 6d 20 0a 73 75 69 74 61 | 62 6c 65 20 66 6f 72 20 |m .suita|ble for |
|000019a0| 75 73 65 20 77 69 74 68 | 20 74 68 65 20 73 65 74 |use with| the set|
|000019b0| 20 74 65 72 6d 20 63 6f | 6d 6d 61 6e 64 2e 20 20 | term co|mmand. |
|000019c0| 74 65 72 6d 5f 6f 70 74 | 69 6f 6e 73 5b 5d 20 69 |term_opt|ions[] i|
|000019d0| 73 20 75 73 65 64 20 62 | 79 20 0a 74 68 65 20 73 |s used b|y .the s|
|000019e0| 61 76 65 20 63 6f 6d 6d | 61 6e 64 2e 20 20 55 73 |ave comm|and. Us|
|000019f0| 65 20 6f 70 74 69 6f 6e | 73 5f 6e 75 6c 6c 28 29 |e option|s_null()|
|00001a00| 20 69 66 20 6e 6f 20 6f | 70 74 69 6f 6e 73 20 61 | if no o|ptions a|
|00001a10| 72 65 20 61 76 61 69 6c | 61 62 6c 65 2e 20 0a 0a |re avail|able. ..|
|00001a20| 5f 69 6e 69 74 28 29 20 | 20 43 61 6c 6c 65 64 20 |_init() | Called |
|00001a30| 6f 6e 63 65 2c 20 77 68 | 65 6e 20 74 68 65 20 64 |once, wh|en the d|
|00001a40| 65 76 69 63 65 20 69 73 | 20 66 69 72 73 74 20 73 |evice is| first s|
|00001a50| 65 6c 65 63 74 65 64 2e | 20 20 54 68 69 73 20 70 |elected.| This p|
|00001a60| 72 6f 63 65 64 75 72 65 | 0a 73 68 6f 75 6c 64 20 |rocedure|.should |
|00001a70| 73 65 74 20 75 70 20 74 | 68 69 6e 67 73 20 74 68 |set up t|hings th|
|00001a80| 61 74 20 6f 6e 6c 79 20 | 6e 65 65 64 20 74 6f 20 |at only |need to |
|00001a90| 62 65 20 73 65 74 20 6f | 6e 63 65 2c 20 6c 69 6b |be set o|nce, lik|
|00001aa0| 65 20 68 61 6e 64 73 68 | 61 6b 69 6e 67 20 61 6e |e handsh|aking an|
|00001ab0| 64 0a 63 68 61 72 61 63 | 74 65 72 20 73 65 74 73 |d.charac|ter sets|
|00001ac0| 20 65 74 63 2e 2e 2e 0a | 54 68 65 72 65 20 69 73 | etc....|There is|
|00001ad0| 20 61 20 67 6c 6f 62 61 | 6c 20 76 61 72 69 61 62 | a globa|l variab|
|00001ae0| 6c 65 20 27 70 6f 69 6e | 74 73 69 7a 65 27 20 77 |le 'poin|tsize' w|
|00001af0| 68 69 63 68 20 79 6f 75 | 20 6d 69 67 68 74 20 77 |hich you| might w|
|00001b00| 61 6e 74 20 74 6f 20 75 | 73 65 20 68 65 72 65 2e |ant to u|se here.|
|00001b10| 0a 49 66 20 73 65 74 20 | 70 6f 69 6e 74 73 69 7a |.If set |pointsiz|
|00001b20| 65 20 69 73 20 69 73 73 | 75 65 64 20 61 66 74 65 |e is iss|ued afte|
|00001b30| 72 20 69 6e 69 74 20 68 | 61 73 20 62 65 65 6e 20 |r init h|as been |
|00001b40| 63 61 6c 6c 65 64 2c 20 | 74 68 65 20 73 65 74 5f |called, |the set_|
|00001b50| 70 6f 69 6e 74 73 69 7a | 65 28 29 0a 66 75 6e 63 |pointsiz|e().func|
|00001b60| 74 69 6f 6e 20 69 73 20 | 63 61 6c 6c 65 64 2e 0a |tion is |called..|
|00001b70| 0a 5f 72 65 73 65 74 28 | 29 20 20 43 61 6c 6c 65 |._reset(|) Calle|
|00001b80| 64 20 77 68 65 6e 20 67 | 6e 75 70 6c 6f 74 20 69 |d when g|nuplot i|
|00001b90| 73 20 65 78 69 74 65 64 | 2c 20 74 68 65 20 6f 75 |s exited|, the ou|
|00001ba0| 74 70 75 74 20 64 65 76 | 69 63 65 20 63 68 61 6e |tput dev|ice chan|
|00001bb0| 67 65 64 20 6f 72 0a 74 | 68 65 20 74 65 72 6d 69 |ged or.t|he termi|
|00001bc0| 6e 61 6c 20 74 79 70 65 | 20 63 68 61 6e 67 65 64 |nal type| changed|
|00001bd0| 2e 20 20 54 68 69 73 20 | 70 72 6f 63 65 64 75 72 |. This |procedur|
|00001be0| 65 20 73 68 6f 75 6c 64 | 20 72 65 73 65 74 20 74 |e should| reset t|
|00001bf0| 68 65 20 64 65 76 69 63 | 65 2c 20 0a 70 6f 73 73 |he devic|e, .poss|
|00001c00| 69 62 6c 79 20 66 6c 75 | 73 68 69 6e 67 20 61 20 |ibly flu|shing a |
|00001c10| 62 75 66 66 65 72 20 73 | 6f 6d 65 77 68 65 72 65 |buffer s|omewhere|
|00001c20| 20 6f 72 20 67 65 6e 65 | 72 61 74 69 6e 67 20 61 | or gene|rating a|
|00001c30| 20 66 6f 72 6d 20 66 65 | 65 64 2e 0a 0a 5f 73 63 | form fe|ed..._sc|
|00001c40| 61 6c 65 28 78 73 2c 79 | 73 29 20 43 61 6c 6c 65 |ale(xs,y|s) Calle|
|00001c50| 64 20 6a 75 73 74 20 62 | 65 66 6f 72 65 20 5f 67 |d just b|efore _g|
|00001c60| 72 61 70 68 69 63 73 28 | 29 2e 20 54 68 69 73 20 |raphics(|). This |
|00001c70| 74 61 6b 65 73 20 74 68 | 65 20 78 20 61 6e 64 20 |takes th|e x and |
|00001c80| 79 0a 73 63 61 6c 69 6e | 67 20 66 61 63 74 6f 72 |y.scalin|g factor|
|00001c90| 73 20 61 73 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |s as inf|ormation|
|00001ca0| 2e 20 49 66 20 74 68 65 | 20 74 65 72 6d 69 6e 61 |. If the| termina|
|00001cb0| 6c 20 77 6f 75 6c 64 20 | 6c 69 6b 65 20 74 6f 20 |l would |like to |
|00001cc0| 64 6f 20 69 74 73 0a 6f | 77 6e 20 73 63 61 6c 69 |do its.o|wn scali|
|00001cd0| 6e 67 2c 20 69 74 20 72 | 65 74 75 72 6e 73 20 54 |ng, it r|eturns T|
|00001ce0| 52 55 45 2e 20 4f 74 68 | 65 72 77 69 73 65 2c 20 |RUE. Oth|erwise, |
|00001cf0| 69 74 20 63 61 6e 20 69 | 67 6e 6f 72 65 20 74 68 |it can i|gnore th|
|00001d00| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 0a 61 6e |e inform|ation.an|
|00001d10| 64 20 72 65 74 75 72 6e | 20 46 41 4c 53 45 3a 20 |d return| FALSE: |
|00001d20| 64 6f 5f 70 6c 6f 74 20 | 77 69 6c 6c 20 64 6f 20 |do_plot |will do |
|00001d30| 74 68 65 20 73 63 61 6c | 69 6e 67 20 66 6f 72 20 |the scal|ing for |
|00001d40| 79 6f 75 2e 20 6e 75 6c | 6c 5f 73 63 61 6c 65 20 |you. nul|l_scale |
|00001d50| 69 73 0a 70 72 6f 76 69 | 64 65 64 20 74 6f 20 64 |is.provi|ded to d|
|00001d60| 6f 20 6a 75 73 74 20 74 | 68 69 73 2c 20 73 6f 20 |o just t|his, so |
|00001d70| 6d 6f 73 74 20 64 72 69 | 76 65 72 73 20 63 61 6e |most dri|vers can|
|00001d80| 20 69 67 6e 6f 72 65 20 | 74 68 69 73 20 66 75 6e | ignore |this fun|
|00001d90| 63 74 69 6f 6e 0a 65 6e | 74 69 72 65 6c 79 2e 20 |ction.en|tirely. |
|00001da0| 54 68 65 20 4c 61 74 65 | 78 20 64 72 69 76 65 72 |The Late|x driver|
|00001db0| 20 69 73 20 63 75 72 72 | 65 6e 74 6c 79 20 74 68 | is curr|ently th|
|00001dc0| 65 20 6f 6e 6c 79 20 6f | 6e 65 20 70 72 6f 76 69 |e only o|ne provi|
|00001dd0| 64 69 6e 67 20 69 74 73 | 20 6f 77 6e 0a 73 63 61 |ding its| own.sca|
|00001de0| 6c 69 6e 67 2e 20 50 4c | 45 41 53 45 20 44 4f 20 |ling. PL|EASE DO |
|00001df0| 4e 4f 54 20 55 53 45 20 | 54 48 49 53 20 49 4e 54 |NOT USE |THIS INT|
|00001e00| 45 52 46 41 43 45 20 2d | 20 49 54 20 49 53 20 4e |ERFACE -| IT IS N|
|00001e10| 4f 54 20 43 4f 4d 50 41 | 54 49 42 4c 45 20 57 49 |OT COMPA|TIBLE WI|
|00001e20| 54 48 0a 4d 55 4c 54 49 | 50 4c 4f 54 2e 0a 0a 5f |TH.MULTI|PLOT..._|
|00001e30| 67 72 61 70 68 69 63 73 | 28 29 20 20 43 61 6c 6c |graphics|() Call|
|00001e40| 65 64 20 6a 75 73 74 20 | 62 65 66 6f 72 65 20 61 |ed just |before a|
|00001e50| 20 70 6c 6f 74 20 69 73 | 20 67 6f 69 6e 67 20 74 | plot is| going t|
|00001e60| 6f 20 62 65 20 64 69 73 | 70 6c 61 79 65 64 2e 20 |o be dis|played. |
|00001e70| 20 54 68 69 73 0a 70 72 | 6f 63 65 64 75 72 65 20 | This.pr|ocedure |
|00001e80| 73 68 6f 75 6c 64 20 73 | 65 74 20 74 68 65 20 64 |should s|et the d|
|00001e90| 65 76 69 63 65 20 69 6e | 74 6f 20 67 72 61 70 68 |evice in|to graph|
|00001ea0| 69 63 73 20 6d 6f 64 65 | 2e 20 20 44 65 76 69 63 |ics mode|. Devic|
|00001eb0| 65 73 20 77 68 69 63 68 | 20 63 61 6e 27 74 0a 62 |es which| can't.b|
|00001ec0| 65 20 75 73 65 64 20 61 | 73 20 74 65 72 6d 69 6e |e used a|s termin|
|00001ed0| 61 6c 73 20 28 6c 69 6b | 65 20 70 6c 6f 74 74 65 |als (lik|e plotte|
|00001ee0| 72 73 29 20 77 69 6c 6c | 20 70 72 6f 62 61 62 6c |rs) will| probabl|
|00001ef0| 79 20 62 65 20 69 6e 20 | 67 72 61 70 68 69 63 73 |y be in |graphics|
|00001f00| 20 6d 6f 64 65 20 0a 61 | 6c 77 61 79 73 20 61 6e | mode .a|lways an|
|00001f10| 64 20 74 68 65 72 65 66 | 6f 72 65 20 77 6f 6e 27 |d theref|ore won'|
|00001f20| 74 20 6e 65 65 64 20 74 | 68 69 73 2e 0a 0a 5f 74 |t need t|his..._t|
|00001f30| 65 78 74 28 29 20 20 43 | 61 6c 6c 65 64 20 69 6d |ext() C|alled im|
|00001f40| 6d 65 64 69 61 74 65 6c | 79 20 61 66 74 65 72 20 |mediatel|y after |
|00001f50| 61 20 70 6c 6f 74 20 69 | 73 20 64 69 73 70 6c 61 |a plot i|s displa|
|00001f60| 79 65 64 2e 20 20 54 68 | 69 73 20 70 72 6f 63 65 |yed. Th|is proce|
|00001f70| 64 75 72 65 20 0a 73 68 | 6f 75 6c 64 20 73 65 74 |dure .sh|ould set|
|00001f80| 20 74 68 65 20 64 65 76 | 69 63 65 20 62 61 63 6b | the dev|ice back|
|00001f90| 20 69 6e 74 6f 20 74 65 | 78 74 20 6d 6f 64 65 20 | into te|xt mode |
|00001fa0| 69 66 20 69 74 20 69 73 | 20 61 6c 73 6f 20 61 20 |if it is| also a |
|00001fb0| 74 65 72 6d 69 6e 61 6c | 2c 20 73 6f 0a 74 68 61 |terminal|, so.tha|
|00001fc0| 74 20 63 6f 6d 6d 61 6e | 64 73 20 63 61 6e 20 62 |t comman|ds can b|
|00001fd0| 65 20 73 65 65 6e 20 61 | 73 20 74 68 65 79 27 72 |e seen a|s they'r|
|00001fe0| 65 20 74 79 70 65 64 2e | 20 20 41 67 61 69 6e 2c |e typed.| Again,|
|00001ff0| 20 74 68 69 73 20 77 69 | 6c 6c 20 70 72 6f 62 61 | this wi|ll proba|
|00002000| 62 6c 79 0a 64 6f 20 6e | 6f 74 68 69 6e 67 20 69 |bly.do n|othing i|
|00002010| 66 20 74 68 65 20 64 65 | 76 69 63 65 20 63 61 6e |f the de|vice can|
|00002020| 27 74 20 62 65 20 75 73 | 65 64 20 61 73 20 61 20 |'t be us|ed as a |
|00002030| 74 65 72 6d 69 6e 61 6c | 2e 20 54 68 69 73 20 63 |terminal|. This c|
|00002040| 61 6c 6c 20 63 61 6e 0a | 62 65 20 75 73 65 64 20 |all can.|be used |
|00002050| 74 6f 20 74 72 69 67 67 | 65 72 20 63 6f 6e 76 65 |to trigg|er conve|
|00002060| 72 73 69 6f 6e 20 61 6e | 64 20 6f 75 74 70 75 74 |rsion an|d output|
|00002070| 20 66 6f 72 20 62 69 74 | 6d 61 70 20 64 65 76 69 | for bit|map devi|
|00002080| 63 65 73 2e 0a 0a 5f 6d | 6f 76 65 28 78 2c 79 29 |ces..._m|ove(x,y)|
|00002090| 20 20 43 61 6c 6c 65 64 | 20 61 74 20 74 68 65 20 | Called| at the |
|000020a0| 73 74 61 72 74 20 6f 66 | 20 61 20 6c 69 6e 65 2e |start of| a line.|
|000020b0| 20 20 54 68 65 20 63 75 | 72 73 6f 72 20 73 68 6f | The cu|rsor sho|
|000020c0| 75 6c 64 20 6d 6f 76 65 | 20 74 6f 20 74 68 65 0a |uld move| to the.|
|000020d0| 28 78 2c 79 29 20 70 6f | 73 69 74 69 6f 6e 20 77 |(x,y) po|sition w|
|000020e0| 69 74 68 6f 75 74 20 64 | 72 61 77 69 6e 67 2e 0a |ithout d|rawing..|
|000020f0| 0a 5f 76 65 63 74 6f 72 | 28 78 2c 79 29 20 20 43 |._vector|(x,y) C|
|00002100| 61 6c 6c 65 64 20 77 68 | 65 6e 20 61 20 6c 69 6e |alled wh|en a lin|
|00002110| 65 20 69 73 20 74 6f 20 | 62 65 20 64 72 61 77 6e |e is to |be drawn|
|00002120| 2e 20 20 54 68 69 73 20 | 73 68 6f 75 6c 64 20 64 |. This |should d|
|00002130| 69 73 70 6c 61 79 20 61 | 20 6c 69 6e 65 0a 66 72 |isplay a| line.fr|
|00002140| 6f 6d 20 74 68 65 20 6c | 61 73 74 20 28 78 2c 79 |om the l|ast (x,y|
|00002150| 29 20 70 6f 73 69 74 69 | 6f 6e 20 67 69 76 65 6e |) positi|on given|
|00002160| 20 62 79 20 5f 6d 6f 76 | 65 28 29 20 6f 72 20 5f | by _mov|e() or _|
|00002170| 76 65 63 74 6f 72 28 29 | 20 74 6f 20 74 68 69 73 |vector()| to this|
|00002180| 20 6e 65 77 20 28 78 2c | 79 29 0a 70 6f 73 69 74 | new (x,|y).posit|
|00002190| 69 6f 6e 2e 0a 0a 5f 6c | 69 6e 65 74 79 70 65 28 |ion..._l|inetype(|
|000021a0| 6c 74 29 20 20 43 61 6c | 6c 65 64 20 74 6f 20 73 |lt) Cal|led to s|
|000021b0| 65 74 20 74 68 65 20 6c | 69 6e 65 20 74 79 70 65 |et the l|ine type|
|000021c0| 20 62 65 66 6f 72 65 20 | 74 65 78 74 20 69 73 20 | before |text is |
|000021d0| 64 69 73 70 6c 61 79 65 | 64 20 6f 72 0a 6c 69 6e |displaye|d or.lin|
|000021e0| 65 28 73 29 20 70 6c 6f | 74 74 65 64 2e 20 20 54 |e(s) plo|tted. T|
|000021f0| 68 69 73 20 70 72 6f 63 | 65 64 75 72 65 20 73 68 |his proc|edure sh|
|00002200| 6f 75 6c 64 20 73 65 6c | 65 63 74 20 61 20 70 65 |ould sel|ect a pe|
|00002210| 6e 20 63 6f 6c 6f 72 20 | 6f 72 20 6c 69 6e 65 0a |n color |or line.|
|00002220| 73 74 79 6c 65 20 69 66 | 20 74 68 65 20 64 65 76 |style if| the dev|
|00002230| 69 63 65 20 68 61 73 20 | 74 68 65 73 65 20 63 61 |ice has |these ca|
|00002240| 70 61 62 69 6c 69 74 69 | 65 73 2e 20 20 0a 6c 74 |pabiliti|es. .lt|
|00002250| 20 69 73 20 61 6e 20 69 | 6e 74 65 67 65 72 20 66 | is an i|nteger f|
|00002260| 72 6f 6d 20 2d 32 20 74 | 6f 20 30 20 6f 72 20 67 |rom -2 t|o 0 or g|
|00002270| 72 65 61 74 65 72 2e 20 | 20 0a 41 6e 20 6c 74 20 |reater. | .An lt |
|00002280| 6f 66 20 2d 32 20 69 73 | 20 75 73 65 64 20 66 6f |of -2 is| used fo|
|00002290| 72 20 74 68 65 20 62 6f | 72 64 65 72 20 6f 66 20 |r the bo|rder of |
|000022a0| 74 68 65 20 70 6c 6f 74 | 2e 0a 41 6e 20 6c 74 20 |the plot|..An lt |
|000022b0| 6f 66 20 2d 31 20 69 73 | 20 75 73 65 64 20 66 6f |of -1 is| used fo|
|000022c0| 72 20 74 68 65 20 58 20 | 61 6e 64 20 59 20 61 78 |r the X |and Y ax|
|000022d0| 65 73 2e 20 20 0a 6c 74 | 20 30 20 61 6e 64 20 75 |es. .lt| 0 and u|
|000022e0| 70 77 61 72 64 73 20 61 | 72 65 20 75 73 65 64 20 |pwards a|re used |
|000022f0| 66 6f 72 20 70 6c 6f 74 | 73 20 30 20 61 6e 64 20 |for plot|s 0 and |
|00002300| 75 70 77 61 72 64 73 2e | 0a 49 66 20 5f 6c 69 6e |upwards.|.If _lin|
|00002310| 65 74 79 70 65 28 29 20 | 69 73 20 63 61 6c 6c 65 |etype() |is calle|
|00002320| 64 20 77 69 74 68 20 6c | 74 20 67 72 65 61 74 65 |d with l|t greate|
|00002330| 72 20 74 68 61 6e 20 74 | 68 65 20 61 76 61 69 6c |r than t|he avail|
|00002340| 61 62 6c 65 20 6c 69 6e | 65 20 74 79 70 65 73 2c |able lin|e types,|
|00002350| 20 0a 69 74 20 73 68 6f | 75 6c 64 20 6d 61 70 20 | .it sho|uld map |
|00002360| 69 74 20 74 6f 20 6f 6e | 65 20 6f 66 20 74 68 65 |it to on|e of the|
|00002370| 20 61 76 61 69 6c 61 62 | 6c 65 20 6c 69 6e 65 20 | availab|le line |
|00002380| 74 79 70 65 73 2e 0a 4d | 6f 73 74 20 64 72 69 76 |types..M|ost driv|
|00002390| 65 72 73 20 70 72 6f 76 | 69 64 65 20 39 20 64 69 |ers prov|ide 9 di|
|000023a0| 66 66 65 72 65 6e 74 20 | 6c 69 6e 65 74 79 70 65 |fferent |linetype|
|000023b0| 73 20 28 6c 74 20 69 73 | 20 30 20 74 6f 20 38 29 |s (lt is| 0 to 8)|
|000023c0| 2e 0a 0a 5f 70 75 74 5f | 74 65 78 74 28 78 2c 79 |..._put_|text(x,y|
|000023d0| 2c 73 74 72 29 20 20 43 | 61 6c 6c 65 64 20 74 6f |,str) C|alled to|
|000023e0| 20 64 69 73 70 6c 61 79 | 20 74 65 78 74 20 61 74 | display| text at|
|000023f0| 20 74 68 65 20 28 78 2c | 79 29 20 70 6f 73 69 74 | the (x,|y) posit|
|00002400| 69 6f 6e 2c 20 0a 77 68 | 69 6c 65 20 69 6e 20 67 |ion, .wh|ile in g|
|00002410| 72 61 70 68 69 63 73 20 | 6d 6f 64 65 2e 20 20 20 |raphics |mode. |
|00002420| 54 68 65 20 74 65 78 74 | 20 73 68 6f 75 6c 64 20 |The text| should |
|00002430| 62 65 20 76 65 72 74 69 | 63 61 6c 6c 79 20 28 77 |be verti|cally (w|
|00002440| 69 74 68 20 72 65 73 70 | 65 63 74 20 0a 74 6f 20 |ith resp|ect .to |
|00002450| 74 68 65 20 74 65 78 74 | 29 20 6a 75 73 74 69 66 |the text|) justif|
|00002460| 69 65 64 20 61 62 6f 75 | 74 20 28 78 2c 79 29 2e |ied abou|t (x,y).|
|00002470| 20 20 54 68 65 20 74 65 | 78 74 20 69 73 20 72 6f | The te|xt is ro|
|00002480| 74 61 74 65 64 20 61 63 | 63 6f 72 64 69 6e 67 20 |tated ac|cording |
|00002490| 0a 74 6f 20 5f 74 65 78 | 74 5f 61 6e 67 6c 65 20 |.to _tex|t_angle |
|000024a0| 61 6e 64 20 74 68 65 6e | 20 68 6f 72 69 7a 6f 6e |and then| horizon|
|000024b0| 74 61 6c 6c 79 20 28 77 | 69 74 68 20 72 65 73 70 |tally (w|ith resp|
|000024c0| 65 63 74 20 74 6f 20 74 | 68 65 20 74 65 78 74 29 |ect to t|he text)|
|000024d0| 0a 6a 75 73 74 69 66 69 | 65 64 20 61 63 63 6f 72 |.justifi|ed accor|
|000024e0| 64 69 6e 67 20 74 6f 20 | 5f 6a 75 73 74 69 66 79 |ding to |_justify|
|000024f0| 5f 74 65 78 74 2e 0a 0a | 0a 54 68 65 20 66 6f 6c |_text...|.The fol|
|00002500| 6c 6f 77 69 6e 67 20 61 | 72 65 20 6f 70 74 69 6f |lowing a|re optio|
|00002510| 6e 61 6c 0a 0a 0a 5f 74 | 65 78 74 5f 61 6e 67 6c |nal..._t|ext_angl|
|00002520| 65 28 61 6e 67 29 20 20 | 43 61 6c 6c 65 64 20 74 |e(ang) |Called t|
|00002530| 6f 20 72 6f 74 61 74 65 | 20 74 68 65 20 74 65 78 |o rotate| the tex|
|00002540| 74 20 61 6e 67 6c 65 20 | 77 68 65 6e 20 70 6c 61 |t angle |when pla|
|00002550| 63 69 6e 67 20 74 68 65 | 20 79 20 6c 61 62 65 6c |cing the| y label|
|00002560| 2e 0a 49 66 20 61 6e 67 | 20 3d 20 30 20 74 68 65 |..If ang| = 0 the|
|00002570| 6e 20 74 65 78 74 20 69 | 73 20 68 6f 72 69 7a 6f |n text i|s horizo|
|00002580| 6e 74 61 6c 2e 20 20 49 | 66 20 61 6e 67 20 3d 20 |ntal. I|f ang = |
|00002590| 31 20 74 68 65 6e 20 74 | 65 78 74 20 69 73 20 76 |1 then t|ext is v|
|000025a0| 65 72 74 69 63 61 6c 6c | 79 0a 75 70 77 61 72 64 |erticall|y.upward|
|000025b0| 73 2e 20 20 52 65 74 75 | 72 6e 73 20 54 52 55 45 |s. Retu|rns TRUE|
|000025c0| 20 69 66 20 74 65 78 74 | 20 63 61 6e 20 62 65 20 | if text| can be |
|000025d0| 72 6f 74 61 74 65 64 2c | 20 46 41 4c 53 45 20 6f |rotated,| FALSE o|
|000025e0| 74 68 65 72 77 69 73 65 | 2e 0a 5b 42 75 74 20 79 |therwise|..[But y|
|000025f0| 6f 75 20 6d 75 73 74 20 | 72 65 74 75 72 6e 20 54 |ou must |return T|
|00002600| 52 55 45 20 69 66 20 63 | 61 6c 6c 65 64 20 77 69 |RUE if c|alled wi|
|00002610| 74 68 20 61 6e 67 3d 30 | 5d 0a 0a 5f 6a 75 73 74 |th ang=0|].._just|
|00002620| 69 66 79 5f 74 65 78 74 | 28 6d 6f 64 65 29 20 20 |ify_text|(mode) |
|00002630| 43 61 6c 6c 65 64 20 74 | 6f 20 6a 75 73 74 69 66 |Called t|o justif|
|00002640| 79 20 74 65 78 74 20 6c | 65 66 74 2c 20 72 69 67 |y text l|eft, rig|
|00002650| 68 74 20 6f 72 20 63 65 | 6e 74 72 65 2e 0a 49 66 |ht or ce|ntre..If|
|00002660| 20 6d 6f 64 65 20 3d 20 | 4c 45 46 54 20 74 68 65 | mode = |LEFT the|
|00002670| 6e 20 74 65 78 74 20 70 | 6c 61 63 65 64 20 62 79 |n text p|laced by|
|00002680| 20 5f 70 75 74 5f 74 65 | 78 74 20 69 73 20 66 6c | _put_te|xt is fl|
|00002690| 75 73 68 65 64 20 6c 65 | 66 74 20 61 67 61 69 6e |ushed le|ft again|
|000026a0| 73 74 20 28 78 2c 79 29 | 2e 0a 49 66 20 6d 6f 64 |st (x,y)|..If mod|
|000026b0| 65 20 3d 20 43 45 4e 54 | 52 45 20 74 68 65 6e 20 |e = CENT|RE then |
|000026c0| 63 65 6e 74 72 65 20 6f | 66 20 74 65 78 74 20 69 |centre o|f text i|
|000026d0| 73 20 61 74 20 28 78 2c | 79 29 2e 20 20 0a 49 66 |s at (x,|y). .If|
|000026e0| 20 6d 6f 64 65 20 3d 20 | 52 49 47 48 54 20 74 68 | mode = |RIGHT th|
|000026f0| 65 6e 20 74 65 78 74 20 | 69 73 20 70 6c 61 63 65 |en text |is place|
|00002700| 64 20 66 6c 75 73 68 65 | 64 20 72 69 67 68 74 20 |d flushe|d right |
|00002710| 61 67 61 69 6e 73 74 20 | 28 78 2c 79 29 2e 0a 52 |against |(x,y)..R|
|00002720| 65 74 75 72 6e 73 20 54 | 52 55 45 20 69 66 20 74 |eturns T|RUE if t|
|00002730| 65 78 74 20 63 61 6e 20 | 62 65 20 6a 75 73 74 69 |ext can |be justi|
|00002740| 66 69 65 64 0a 52 65 74 | 75 72 6e 73 20 46 41 4c |fied.Ret|urns FAL|
|00002750| 53 45 20 6f 74 68 65 72 | 77 69 73 65 20 61 6e 64 |SE other|wise and|
|00002760| 20 74 68 65 6e 20 5f 70 | 75 74 5f 74 65 78 74 20 | then _p|ut_text |
|00002770| 61 73 73 75 6d 65 73 20 | 74 65 78 74 20 69 73 20 |assumes |text is |
|00002780| 66 6c 75 73 68 65 64 20 | 6c 65 66 74 3b 0a 6a 75 |flushed |left;.ju|
|00002790| 73 74 69 66 69 63 61 74 | 69 6f 6e 20 6f 66 20 74 |stificat|ion of t|
|000027a0| 65 78 74 20 69 73 20 74 | 68 65 6e 20 70 65 72 66 |ext is t|hen perf|
|000027b0| 6f 72 6d 65 64 20 62 79 | 20 63 61 6c 63 75 6c 61 |ormed by| calcula|
|000027c0| 74 69 6e 67 20 74 68 65 | 20 74 65 78 74 20 77 69 |ting the| text wi|
|000027d0| 64 74 68 0a 75 73 69 6e | 67 20 73 74 72 6c 65 6e |dth.usin|g strlen|
|000027e0| 28 74 65 78 74 29 20 2a | 20 68 5f 63 68 61 72 2e |(text) *| h_char.|
|000027f0| 0a 0a 5f 70 6f 69 6e 74 | 28 78 2c 79 2c 70 6f 69 |.._point|(x,y,poi|
|00002800| 6e 74 29 20 20 43 61 6c | 6c 65 64 20 74 6f 20 70 |nt) Cal|led to p|
|00002810| 6c 61 63 65 20 61 20 70 | 6f 69 6e 74 20 61 74 20 |lace a p|oint at |
|00002820| 70 6f 73 69 74 69 6f 6e | 20 28 78 2c 79 29 2e 0a |position| (x,y)..|
|00002830| 70 6f 69 6e 74 20 69 73 | 20 2d 31 20 6f 72 20 61 |point is| -1 or a|
|00002840| 6e 20 69 6e 74 65 67 65 | 72 20 66 72 6f 6d 20 30 |n intege|r from 0|
|00002850| 20 75 70 77 61 72 64 73 | 2e 20 20 0a 41 74 20 6c | upwards|. .At l|
|00002860| 65 61 73 74 20 36 20 70 | 6f 69 6e 74 20 74 79 70 |east 6 p|oint typ|
|00002870| 65 73 20 28 6e 75 6d 62 | 65 72 65 64 20 30 20 74 |es (numb|ered 0 t|
|00002880| 6f 20 35 29 20 61 72 65 | 20 6e 6f 72 6d 61 6c 6c |o 5) are| normall|
|00002890| 79 20 70 72 6f 76 69 64 | 65 64 2e 20 20 0a 50 6f |y provid|ed. .Po|
|000028a0| 69 6e 74 20 74 79 70 65 | 20 2d 31 20 69 73 20 61 |int type| -1 is a|
|000028b0| 20 64 6f 74 2e 0a 49 66 | 20 70 6f 69 6e 74 20 69 | dot..If| point i|
|000028c0| 73 20 6d 6f 72 65 20 74 | 68 61 6e 20 74 68 65 20 |s more t|han the |
|000028d0| 61 76 61 69 6c 61 62 6c | 65 20 70 6f 69 6e 74 20 |availabl|e point |
|000028e0| 74 79 70 65 73 20 74 68 | 65 6e 20 69 74 20 73 68 |types th|en it sh|
|000028f0| 6f 75 6c 64 20 0a 62 65 | 20 6d 61 70 70 65 64 20 |ould .be| mapped |
|00002900| 62 61 63 6b 20 74 6f 20 | 6f 6e 65 20 6f 66 20 74 |back to |one of t|
|00002910| 68 65 20 61 76 61 69 6c | 61 62 6c 65 20 70 6f 69 |he avail|able poi|
|00002920| 6e 74 73 2e 0a 54 77 6f | 20 5f 70 6f 69 6e 74 28 |nts..Two| _point(|
|00002930| 29 20 66 75 6e 63 74 69 | 6f 6e 73 20 63 61 6c 6c |) functi|ons call|
|00002940| 65 64 20 64 6f 5f 70 6f | 69 6e 74 28 29 20 61 6e |ed do_po|int() an|
|00002950| 64 20 6c 69 6e 65 5f 61 | 6e 64 5f 70 6f 69 6e 74 |d line_a|nd_point|
|00002960| 28 29 20 61 72 65 20 0a | 70 72 6f 76 69 64 65 64 |() are .|provided|
|00002970| 20 69 6e 20 74 65 72 6d | 2e 63 20 61 6e 64 20 73 | in term|.c and s|
|00002980| 68 6f 75 6c 64 20 62 65 | 20 73 75 69 74 61 62 6c |hould be| suitabl|
|00002990| 65 20 66 6f 72 20 6d 6f | 73 74 20 64 72 69 76 65 |e for mo|st drive|
|000029a0| 72 73 2e 20 20 0a 64 6f | 5f 70 6f 69 6e 74 28 29 |rs. .do|_point()|
|000029b0| 20 64 72 61 77 73 20 74 | 68 65 20 70 6f 69 6e 74 | draws t|he point|
|000029c0| 73 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |s in the| current|
|000029d0| 20 6c 69 6e 65 20 74 79 | 70 65 2e 0a 49 66 20 79 | line ty|pe..If y|
|000029e0| 6f 75 72 20 64 72 69 76 | 65 72 20 75 73 65 73 20 |our driv|er uses |
|000029f0| 64 6f 74 74 65 64 20 6c | 69 6e 65 20 74 79 70 65 |dotted l|ine type|
|00002a00| 73 20 28 67 65 6e 65 72 | 61 6c 6c 79 20 62 65 63 |s (gener|ally bec|
|00002a10| 61 75 73 65 20 69 74 20 | 69 73 0a 6d 6f 6e 6f 63 |ause it |is.monoc|
|00002a20| 68 72 6f 6d 65 29 2c 20 | 79 6f 75 20 73 68 6f 75 |hrome), |you shou|
|00002a30| 6c 64 20 75 73 65 20 6c | 69 6e 65 5f 61 6e 64 5f |ld use l|ine_and_|
|00002a40| 70 6f 69 6e 74 28 29 20 | 77 68 69 63 68 20 63 68 |point() |which ch|
|00002a50| 61 6e 67 65 73 20 74 6f | 20 0a 6c 69 6e 65 20 74 |anges to| .line t|
|00002a60| 79 70 65 20 30 20 62 65 | 66 6f 72 65 20 64 72 61 |ype 0 be|fore dra|
|00002a70| 77 69 6e 67 20 74 68 65 | 20 70 6f 69 6e 74 2e 20 |wing the| point. |
|00002a80| 20 6c 69 6e 65 20 74 79 | 70 65 20 30 20 73 68 6f | line ty|pe 0 sho|
|00002a90| 75 6c 64 20 62 65 20 73 | 6f 6c 69 64 2e 0a 0a 54 |uld be s|olid...T|
|00002aa0| 68 65 72 65 20 69 73 20 | 61 20 67 6c 6f 62 61 6c |here is |a global|
|00002ab0| 20 76 61 72 69 61 62 6c | 65 20 27 70 6f 69 6e 74 | variabl|e 'point|
|00002ac0| 73 69 7a 65 27 20 77 68 | 69 63 68 20 69 73 20 63 |size' wh|ich is c|
|00002ad0| 6f 6e 74 72 6f 6c 6c 65 | 64 20 62 79 20 74 68 65 |ontrolle|d by the|
|00002ae0| 0a 73 65 74 20 70 6f 69 | 6e 74 73 69 7a 65 20 63 |.set poi|ntsize c|
|00002af0| 6f 6d 6d 61 6e 64 2e 20 | 49 66 20 70 6f 73 73 69 |ommand. |If possi|
|00002b00| 62 6c 65 2c 20 75 73 65 | 20 74 68 61 74 2e 20 70 |ble, use| that. p|
|00002b10| 6f 69 6e 74 73 69 7a 65 | 20 73 68 6f 75 6c 64 20 |ointsize| should |
|00002b20| 62 65 0a 65 78 61 6d 69 | 6e 65 64 20 61 74 20 74 |be.exami|ned at t|
|00002b30| 65 72 6d 69 6e 61 6c 20 | 69 6e 69 74 2e 20 49 66 |erminal |init. If|
|00002b40| 20 69 74 20 69 73 20 73 | 75 62 73 65 71 75 65 6e | it is s|ubsequen|
|00002b50| 74 6c 79 20 63 68 61 6e | 67 65 64 2c 20 74 68 65 |tly chan|ged, the|
|00002b60| 0a 73 65 74 5f 70 6f 69 | 6e 74 73 69 7a 65 28 29 |.set_poi|ntsize()|
|00002b70| 20 66 6e 20 77 69 6c 6c | 20 62 65 20 63 61 6c 6c | fn will| be call|
|00002b80| 65 64 2e 0a 0a 0a 5f 61 | 72 72 6f 77 28 73 78 2c |ed...._a|rrow(sx,|
|00002b90| 73 79 2c 65 78 2c 65 79 | 2c 68 65 61 64 29 20 20 |sy,ex,ey|,head) |
|00002ba0| 43 61 6c 6c 65 64 20 74 | 6f 20 64 72 61 77 20 61 |Called t|o draw a|
|00002bb0| 6e 20 61 72 72 72 6f 77 | 20 66 72 6f 6d 20 28 73 |n arrrow| from (s|
|00002bc0| 78 2c 73 79 29 20 74 6f | 20 28 65 78 2c 65 79 29 |x,sy) to| (ex,ey)|
|00002bd0| 2e 0a 41 20 68 65 61 64 | 20 69 73 20 64 72 61 77 |..A head| is draw|
|00002be0| 6e 20 6f 6e 20 74 68 65 | 20 61 72 72 6f 77 20 69 |n on the| arrow i|
|00002bf0| 66 20 68 65 61 64 20 3d | 20 54 52 55 45 2e 0a 41 |f head =| TRUE..A|
|00002c00| 6e 20 5f 61 72 72 6f 77 | 28 29 20 66 75 6e 63 74 |n _arrow|() funct|
|00002c10| 69 6f 6e 20 63 61 6c 6c | 65 64 20 64 6f 5f 61 72 |ion call|ed do_ar|
|00002c20| 72 6f 77 28 29 20 69 73 | 20 70 72 6f 76 69 64 65 |row() is| provide|
|00002c30| 64 20 69 6e 20 74 65 72 | 6d 2e 63 20 77 68 69 63 |d in ter|m.c whic|
|00002c40| 68 20 77 69 6c 6c 0a 64 | 72 61 77 20 61 72 72 6f |h will.d|raw arro|
|00002c50| 77 73 20 75 73 69 6e 67 | 20 74 68 65 20 5f 6d 6f |ws using| the _mo|
|00002c60| 76 65 28 29 20 61 6e 64 | 20 5f 76 65 63 74 6f 72 |ve() and| _vector|
|00002c70| 28 29 20 66 75 6e 63 74 | 69 6f 6e 73 2e 20 20 0a |() funct|ions. .|
|00002c80| 44 72 69 76 65 72 73 20 | 73 68 6f 75 6c 64 20 75 |Drivers |should u|
|00002c90| 73 65 20 64 6f 5f 61 72 | 72 6f 77 20 75 6e 6c 65 |se do_ar|row unle|
|00002ca0| 73 73 20 69 74 20 63 61 | 75 73 65 73 20 70 72 6f |ss it ca|uses pro|
|00002cb0| 62 6c 65 6d 73 2e 0a 0a | 5f 73 65 74 5f 66 6f 6e |blems...|_set_fon|
|00002cc0| 74 28 29 20 69 73 20 63 | 61 6c 6c 65 64 20 74 6f |t() is c|alled to|
|00002cd0| 20 73 65 74 20 74 68 65 | 20 66 6f 6e 74 20 6f 66 | set the| font of|
|00002ce0| 20 6c 61 62 65 6c 73 2c | 20 65 74 63 20 5b 6e 65 | labels,| etc [ne|
|00002cf0| 77 20 33 2e 37 20 66 65 | 61 74 75 72 65 5d 0a 66 |w 3.7 fe|ature].f|
|00002d00| 6f 6e 74 73 20 61 72 65 | 20 73 65 6c 65 63 74 65 |onts are| selecte|
|00002d10| 64 20 61 73 20 73 74 72 | 69 6e 67 73 20 22 6e 61 |d as str|ings "na|
|00002d20| 6d 65 2c 73 69 7a 65 22 | 0a 0a 5f 70 6f 69 6e 74 |me,size"|.._point|
|00002d30| 73 69 7a 65 28 29 20 69 | 73 20 75 73 65 64 20 74 |size() i|s used t|
|00002d40| 6f 20 73 65 74 20 74 68 | 65 20 70 6f 69 6e 74 73 |o set th|e points|
|00002d50| 69 7a 65 20 66 6f 72 20 | 73 75 62 73 65 71 75 65 |ize for |subseque|
|00002d60| 6e 74 20 70 6f 69 6e 74 | 73 0a 0a 5f 66 6c 61 67 |nt point|s.._flag|
|00002d70| 73 20 73 74 6f 72 65 73 | 20 76 61 72 69 6f 75 73 |s stores| various|
|00002d80| 20 66 6c 61 67 73 20 64 | 65 73 63 72 69 62 69 6e | flags d|escribin|
|00002d90| 67 20 64 72 69 76 65 72 | 20 63 61 70 61 62 69 6c |g driver| capabil|
|00002da0| 69 74 69 65 73 2e 20 43 | 75 72 72 65 6e 74 6c 79 |ities. C|urrently|
|00002db0| 0a 20 74 68 72 65 65 20 | 62 69 74 73 20 61 72 65 |. three |bits are|
|00002dc0| 20 61 6c 6c 6f 63 61 74 | 65 64 0a 20 20 2d 20 54 | allocat|ed. - T|
|00002dd0| 45 52 4d 5f 43 41 4e 5f | 4d 55 4c 54 49 50 4c 4f |ERM_CAN_|MULTIPLO|
|00002de0| 54 20 2d 20 64 72 69 76 | 65 72 20 63 61 6e 20 64 |T - driv|er can d|
|00002df0| 6f 20 6d 75 6c 74 69 70 | 6c 6f 74 0a 20 20 66 75 |o multip|lot. fu|
|00002e00| 6c 6c 79 2d 69 6e 74 65 | 72 61 63 74 69 76 65 6c |lly-inte|ractivel|
|00002e10| 79 20 77 68 65 6e 20 6f | 75 74 70 75 74 20 69 73 |y when o|utput is|
|00002e20| 20 6e 6f 74 20 72 65 64 | 69 72 65 63 74 65 64 2e | not red|irected.|
|00002e30| 20 69 65 20 74 65 78 74 | 20 61 6e 64 20 67 72 61 | ie text| and gra|
|00002e40| 70 68 69 63 73 0a 20 20 | 67 6f 20 74 6f 20 64 69 |phics. |go to di|
|00002e50| 66 66 65 72 65 6e 74 20 | 70 6c 61 63 65 73 2c 20 |fferent |places, |
|00002e60| 6f 72 20 64 72 69 76 65 | 72 20 63 61 6e 20 66 6c |or drive|r can fl|
|00002e70| 69 70 20 75 73 69 6e 67 | 20 73 75 73 70 65 6e 64 |ip using| suspend|
|00002e80| 2e 0a 20 20 2d 20 54 45 | 52 4d 5f 43 41 4e 54 5f |.. - TE|RM_CANT_|
|00002e90| 4d 55 4c 54 49 50 4c 4f | 54 20 2d 20 64 72 69 76 |MULTIPLO|T - driv|
|00002ea0| 65 72 20 63 61 6e 6e 6f | 74 20 6d 75 6c 74 69 70 |er canno|t multip|
|00002eb0| 6c 6f 74 2c 20 65 76 65 | 6e 20 69 66 20 6f 75 74 |lot, eve|n if out|
|00002ec0| 70 75 74 0a 20 20 69 73 | 20 72 65 64 69 72 65 63 |put. is| redirec|
|00002ed0| 74 65 64 2e 0a 20 20 2d | 20 54 45 52 4d 5f 42 49 |ted.. -| TERM_BI|
|00002ee0| 4e 41 52 59 20 2d 20 6f | 75 74 70 75 74 20 66 69 |NARY - o|utput fi|
|00002ef0| 6c 65 20 6d 75 73 74 20 | 62 65 20 6f 70 65 6e 65 |le must |be opene|
|00002f00| 64 20 69 6e 20 62 69 6e | 61 72 79 20 6d 6f 64 65 |d in bin|ary mode|
|00002f10| 0a 20 20 41 6e 6f 74 68 | 65 72 20 62 69 74 20 69 |. Anoth|er bit i|
|00002f20| 73 20 65 61 72 6d 61 72 | 6b 65 64 20 66 6f 72 20 |s earmar|ked for |
|00002f30| 56 4d 53 5f 50 41 53 54 | 48 52 55 2c 20 62 75 74 |VMS_PAST|HRU, but|
|00002f40| 20 6e 6f 74 20 79 65 74 | 20 69 6d 70 6c 65 6d 65 | not yet| impleme|
|00002f50| 6e 74 65 64 2e 0a 0a 5f | 73 75 73 70 65 6e 64 28 |nted..._|suspend(|
|00002f60| 29 20 2d 20 63 61 6c 6c | 65 64 20 62 65 66 6f 72 |) - call|ed befor|
|00002f70| 65 20 67 6e 75 70 6c 6f | 74 20 69 73 73 75 65 73 |e gnuplo|t issues|
|00002f80| 20 61 20 70 72 6f 6d 70 | 74 20 69 6e 20 6d 75 6c | a promp|t in mul|
|00002f90| 74 69 70 6c 6f 74 20 6d | 6f 64 65 0a 20 20 20 6c |tiplot m|ode. l|
|00002fa0| 69 6e 75 78 20 76 67 61 | 20 64 72 69 76 65 72 20 |inux vga| driver |
|00002fb0| 75 73 65 73 20 74 68 69 | 73 20 65 6e 74 72 79 20 |uses thi|s entry |
|00002fc0| 70 6f 69 6e 74 20 74 6f | 20 66 6c 69 70 20 66 72 |point to| flip fr|
|00002fd0| 6f 6d 20 67 72 61 70 68 | 69 63 73 20 74 6f 0a 20 |om graph|ics to. |
|00002fe0| 20 20 74 65 78 74 20 6d | 6f 64 65 2e 20 58 31 31 | text m|ode. X11|
|00002ff0| 20 64 72 69 76 65 72 20 | 77 69 6c 6c 20 74 61 6b | driver |will tak|
|00003000| 65 20 74 68 69 73 20 6f | 70 70 6f 72 74 75 6e 69 |e this o|pportuni|
|00003010| 74 79 20 74 6f 20 70 61 | 69 6e 74 20 74 68 65 20 |ty to pa|int the |
|00003020| 77 69 6e 64 6f 77 0a 20 | 20 20 6f 6e 20 74 68 65 |window. | on the|
|00003030| 20 64 69 73 70 6c 61 79 | 2e 0a 0a 5f 72 65 73 75 | display|..._resu|
|00003040| 6d 65 28 29 20 2d 20 63 | 61 6c 6c 65 64 20 61 66 |me() - c|alled af|
|00003050| 74 65 72 20 73 75 73 70 | 65 6e 64 28 29 2c 20 62 |ter susp|end(), b|
|00003060| 65 66 6f 72 65 20 73 75 | 62 73 65 71 75 65 6e 74 |efore su|bsequent|
|00003070| 20 70 6c 6f 74 73 20 6f | 66 20 61 20 6d 75 6c 74 | plots o|f a mult|
|00003080| 69 70 6c 6f 74 2e 0a 0a | 5f 62 6f 78 66 69 6c 6c |iplot...|_boxfill|
|00003090| 28 29 20 2d 20 66 69 6c | 6c 73 20 61 20 62 6f 78 |() - fil|ls a box|
|000030a0| 20 69 6e 20 67 69 76 65 | 6e 20 73 74 79 6c 65 20 | in give|n style |
|000030b0| 28 63 75 72 72 65 6e 74 | 6c 79 20 75 6e 69 6d 70 |(current|ly unimp|
|000030c0| 6c 65 6d 65 6e 74 65 64 | 20 2d 20 61 6c 77 61 79 |lemented| - alway|
|000030d0| 73 0a 20 20 20 20 20 20 | 20 20 20 20 20 62 61 63 |s. | bac|
|000030e0| 6b 67 72 6f 75 6e 64 20 | 63 6f 6c 6f 75 72 20 61 |kground |colour a|
|000030f0| 74 20 70 72 65 73 65 6e | 74 29 2e 20 75 73 65 64 |t presen|t). used|
|00003100| 20 62 79 20 27 63 6c 65 | 61 72 27 20 69 6e 20 6d | by 'cle|ar' in m|
|00003110| 75 6c 74 69 70 6c 6f 74 | 20 66 6f 72 0a 20 20 20 |ultiplot| for. |
|00003120| 20 20 20 20 20 20 20 20 | 73 75 70 70 6f 72 74 20 | |support |
|00003130| 6f 66 20 69 6e 73 65 74 | 20 67 72 61 70 68 73 0a |of inset| graphs.|
|00003140| 0a 5f 6c 69 6e 65 77 69 | 64 74 68 28 29 20 2d 20 |._linewi|dth() - |
|00003150| 73 65 74 73 20 74 68 65 | 20 6c 69 6e 65 77 69 64 |sets the| linewid|
|00003160| 74 68 0a 0a 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |th..The |followin|
|00003170| 67 20 73 68 6f 75 6c 64 | 20 69 6c 6c 75 73 74 72 |g should| illustr|
|00003180| 61 74 65 20 74 68 65 20 | 6f 72 64 65 72 20 69 6e |ate the |order in|
|00003190| 20 77 68 69 63 68 20 63 | 61 6c 6c 73 20 74 6f 20 | which c|alls to |
|000031a0| 74 68 65 73 65 0a 72 6f | 75 74 69 6e 65 73 20 61 |these.ro|utines a|
|000031b0| 72 65 20 6d 61 64 65 3a | 0a 0a 20 5f 6f 70 74 69 |re made:|.. _opti|
|000031c0| 6f 6e 73 28 29 0a 20 20 | 5f 69 6e 69 74 28 29 0a |ons(). |_init().|
|000031d0| 20 20 20 20 5f 73 63 61 | 6c 65 28 78 73 2c 79 73 | _sca|le(xs,ys|
|000031e0| 29 0a 20 20 20 20 5f 67 | 72 61 70 68 69 63 73 28 |). _g|raphics(|
|000031f0| 29 0a 20 20 20 20 20 20 | 5f 6c 69 6e 65 77 69 64 |). |_linewid|
|00003200| 74 68 28 6c 77 29 0a 20 | 20 20 20 20 20 5f 6c 69 |th(lw). | _li|
|00003210| 6e 65 74 79 70 65 28 6c | 74 29 0a 20 20 20 20 20 |netype(l|t). |
|00003220| 20 5f 6d 6f 76 65 28 78 | 2c 79 29 0a 20 20 20 20 | _move(x|,y). |
|00003230| 20 20 5f 76 65 63 74 6f | 72 28 78 2c 79 29 0a 20 | _vecto|r(x,y). |
|00003240| 20 20 20 20 20 5f 70 6f | 69 6e 74 73 69 7a 65 28 | _po|intsize(|
|00003250| 73 69 7a 65 29 0a 20 20 | 20 20 20 20 5f 70 6f 69 |size). | _poi|
|00003260| 6e 74 28 78 2c 79 2c 70 | 6f 69 6e 74 29 0a 20 20 |nt(x,y,p|oint). |
|00003270| 20 20 20 20 5f 74 65 78 | 74 5f 61 6e 67 6c 65 28 | _tex|t_angle(|
|00003280| 61 6e 67 6c 65 29 0a 20 | 20 20 20 20 20 5f 6a 75 |angle). | _ju|
|00003290| 73 74 69 66 79 28 6d 6f | 64 65 29 0a 20 20 20 20 |stify(mo|de). |
|000032a0| 20 20 5f 73 65 74 5f 66 | 6f 6e 74 28 66 6f 6e 74 | _set_f|ont(font|
|000032b0| 29 0a 20 20 20 20 20 20 | 5f 70 75 74 5f 74 65 78 |). |_put_tex|
|000032c0| 74 28 78 2c 79 2c 74 65 | 78 74 29 0a 20 20 20 20 |t(x,y,te|xt). |
|000032d0| 20 20 5f 61 72 72 6f 77 | 28 73 78 2c 73 79 2c 65 | _arrow|(sx,sy,e|
|000032e0| 78 2c 65 79 29 0a 20 20 | 20 20 5f 74 65 78 74 28 |x,ey). | _text(|
|000032f0| 29 0a 20 20 20 20 5f 67 | 72 61 70 68 69 63 73 28 |). _g|raphics(|
|00003300| 29 0a 20 20 20 20 20 20 | 2e 0a 20 20 20 20 5f 73 |). |.. _s|
|00003310| 75 73 70 65 6e 64 28 29 | 0a 20 20 20 20 5f 73 65 |uspend()|. _se|
|00003320| 74 5f 70 6f 69 6e 74 73 | 69 7a 65 28 29 0a 20 20 |t_points|ize(). |
|00003330| 20 20 5f 72 65 73 75 6d | 65 28 29 0a 20 20 20 20 | _resum|e(). |
|00003340| 20 20 2e 0a 20 20 20 20 | 5f 74 65 78 74 28 29 0a | .. |_text().|
|00003350| 20 20 5f 72 65 73 65 74 | 28 29 0a 0a 0a 2d 2d 2d | _reset|()...---|
|00003360| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003370| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003380| 2d 0a 0a 42 49 54 4d 41 | 50 20 44 45 56 49 43 45 |-..BITMA|P DEVICE|
|00003390| 53 0a 0a 41 20 66 69 6c | 65 20 62 69 74 6d 61 70 |S..A fil|e bitmap|
|000033a0| 2e 63 20 69 73 20 70 72 | 6f 76 69 64 65 64 2c 20 |.c is pr|ovided, |
|000033b0| 69 6d 70 6c 65 6d 65 6e | 74 69 6e 67 20 61 20 67 |implemen|ting a g|
|000033c0| 65 6e 65 72 69 63 20 73 | 65 74 20 6f 66 20 62 69 |eneric s|et of bi|
|000033d0| 74 6d 61 70 0a 72 6f 75 | 74 69 6e 65 73 2e 20 49 |tmap.rou|tines. I|
|000033e0| 74 20 70 72 6f 76 69 64 | 65 73 20 61 6c 6c 20 74 |t provid|es all t|
|000033f0| 68 65 20 72 6f 75 74 69 | 6e 65 73 20 72 65 71 75 |he routi|nes requ|
|00003400| 69 72 65 64 20 74 6f 20 | 67 65 6e 65 72 61 74 65 |ired to |generate|
|00003410| 20 61 0a 62 69 74 6d 61 | 70 20 69 6e 20 6d 65 6d | a.bitma|p in mem|
|00003420| 6f 72 79 2c 20 64 72 61 | 77 69 6e 67 20 6c 69 6e |ory, dra|wing lin|
|00003430| 65 73 20 61 6e 64 20 77 | 72 69 74 69 6e 67 20 74 |es and w|riting t|
|00003440| 65 78 74 2e 20 41 20 73 | 69 6d 70 6c 65 20 64 72 |ext. A s|imple dr|
|00003450| 69 76 65 72 0a 6e 65 65 | 64 20 70 72 6f 76 69 64 |iver.nee|d provid|
|00003460| 65 20 6f 6e 6c 79 20 61 | 20 74 65 78 74 28 29 20 |e only a| text() |
|00003470| 65 6e 74 72 79 20 70 6f | 69 6e 74 2c 20 77 68 69 |entry po|int, whi|
|00003480| 63 68 20 63 6f 6e 76 65 | 72 74 73 20 61 6e 64 20 |ch conve|rts and |
|00003490| 6f 75 74 70 75 74 73 0a | 74 68 65 20 73 74 6f 72 |outputs.|the stor|
|000034a0| 65 64 20 62 69 74 6d 61 | 70 20 69 6e 20 74 68 65 |ed bitma|p in the|
|000034b0| 20 66 6f 72 6d 61 74 20 | 72 65 71 75 69 72 65 64 | format |required|
|000034c0| 20 62 79 20 74 68 65 20 | 64 65 76 69 63 65 2e 0a | by the |device..|
|000034d0| 0a 49 6e 74 65 72 6e 61 | 6c 6c 79 2c 20 74 68 65 |.Interna|lly, the|
|000034e0| 20 62 69 74 6d 61 70 20 | 69 73 20 62 75 69 6c 74 | bitmap |is built|
|000034f0| 20 6f 66 20 6f 6e 65 20 | 6f 72 20 6d 6f 72 65 20 | of one |or more |
|00003500| 70 6c 61 6e 65 73 20 6f | 66 20 31 0a 62 69 74 20 |planes o|f 1.bit |
|00003510| 70 65 72 20 70 69 78 65 | 6c 2e 20 49 6e 20 66 61 |per pixe|l. In fa|
|00003520| 63 74 2c 20 49 20 74 68 | 69 6e 6b 20 74 68 65 20 |ct, I th|ink the |
|00003530| 6c 69 62 72 61 72 79 20 | 77 6f 75 6c 64 20 62 65 |library |would be|
|00003540| 20 65 61 73 69 65 72 20 | 74 6f 0a 75 73 65 20 69 | easier |to.use i|
|00003550| 66 20 69 74 20 6f 66 66 | 65 72 65 64 20 6f 6e 65 |f it off|ered one|
|00003560| 20 6f 72 20 6d 6f 72 65 | 20 70 6c 61 6e 65 73 20 | or more| planes |
|00003570| 6f 66 20 70 69 78 65 6c | 73 20 77 69 74 68 20 31 |of pixel|s with 1|
|00003580| 2c 32 2c 34 20 6f 72 20 | 38 0a 62 69 74 73 20 70 |,2,4 or |8.bits p|
|00003590| 65 72 20 70 69 78 65 6c | 2c 20 73 69 6e 63 65 20 |er pixel|, since |
|000035a0| 6e 6f 74 20 61 6c 6c 20 | 62 69 74 6d 61 70 20 64 |not all |bitmap d|
|000035b0| 65 76 69 63 65 73 20 61 | 72 65 20 62 61 73 65 64 |evices a|re based|
|000035c0| 20 6f 6e 20 70 6c 61 6e | 65 73 2c 0a 61 6e 64 20 | on plan|es,.and |
|000035d0| 74 68 65 20 70 6c 61 6e | 65 73 20 68 61 76 65 20 |the plan|es have |
|000035e0| 74 6f 20 62 65 20 72 65 | 63 6f 6d 62 69 6e 65 64 |to be re|combined|
|000035f0| 20 61 74 20 74 68 65 20 | 65 6e 64 20 61 74 20 70 | at the |end at p|
|00003600| 72 65 73 65 6e 74 2e 0a | 49 6e 20 67 65 6e 65 72 |resent..|In gener|
|00003610| 61 6c 2c 20 61 20 64 65 | 76 69 63 65 20 77 6f 75 |al, a de|vice wou|
|00003620| 6c 64 20 75 73 65 20 65 | 69 74 68 65 72 20 70 6c |ld use e|ither pl|
|00003630| 61 6e 65 73 20 6f 72 20 | 62 69 74 73 2d 70 65 72 |anes or |bits-per|
|00003640| 2d 70 69 78 65 6c 2c 0a | 74 68 6f 75 67 68 20 49 |-pixel,.|though I|
|00003650| 20 67 75 65 73 73 20 61 | 20 32 34 2d 62 69 74 20 | guess a| 24-bit |
|00003660| 62 69 74 6d 61 70 20 63 | 6f 75 6c 64 20 75 73 65 |bitmap c|ould use|
|00003670| 20 33 20 70 6c 61 6e 65 | 73 20 6f 66 20 38 20 62 | 3 plane|s of 8 b|
|00003680| 69 74 73 0a 70 65 72 20 | 70 69 78 65 6c 2e 2e 3f |its.per |pixel..?|
|00003690| 0a 0a 0a 54 68 65 20 70 | 69 78 65 6c 73 20 61 72 |...The p|ixels ar|
|000036a0| 65 20 63 75 72 72 65 6e | 74 6c 79 20 6f 72 67 61 |e curren|tly orga|
|000036b0| 6e 69 73 65 64 20 68 6f | 72 69 7a 6f 6e 74 61 6c |nised ho|rizontal|
|000036c0| 6c 79 20 70 61 63 6b 65 | 64 20 69 6e 74 6f 20 62 |ly packe|d into b|
|000036d0| 79 74 65 73 2e 0a 0a 69 | 65 0a 0a 2a 2a 2a 2a 2a |ytes...i|e..*****|
|000036e0| 2a 2a 2a 25 25 25 25 25 | 25 25 25 24 24 24 24 24 |***%%%%%|%%%$$$$$|
|000036f0| 24 24 24 21 21 21 21 21 | 21 21 21 20 65 74 63 0a |$$$!!!!!|!!! etc.|
|00003700| 5e 5e 5e 5e 5e 5e 5e 5e | 40 40 40 40 40 40 40 40 |^^^^^^^^|@@@@@@@@|
|00003710| 23 23 23 23 23 23 23 23 | 2b 2b 2b 2b 2b 2b 2b 2b |########|++++++++|
|00003720| 20 65 74 63 0a 0a 77 68 | 65 72 65 20 6c 69 6b 65 | etc..wh|ere like|
|00003730| 20 73 79 6d 62 6f 6c 73 | 20 61 72 65 20 73 74 6f | symbols| are sto|
|00003740| 72 65 64 20 69 6e 20 6f | 6e 65 20 62 79 74 65 2e |red in o|ne byte.|
|00003750| 20 56 65 72 74 69 63 61 | 6c 20 70 61 63 6b 69 6e | Vertica|l packin|
|00003760| 67 20 63 61 6e 20 62 65 | 0a 61 72 72 61 6e 67 65 |g can be|.arrange|
|00003770| 64 20 62 79 20 72 65 76 | 65 72 73 69 6e 67 20 78 |d by rev|ersing x|
|00003780| 20 61 6e 64 20 79 20 64 | 69 6d 65 6e 73 69 6f 6e | and y d|imension|
|00003790| 73 20 61 6e 64 20 73 65 | 74 74 69 6e 67 20 74 68 |s and se|tting th|
|000037a0| 65 20 67 6c 6f 62 61 6c | 0a 62 5f 72 61 73 74 65 |e global|.b_raste|
|000037b0| 72 6d 6f 64 65 20 74 6f | 20 54 52 55 45 2e 20 20 |rmode to| TRUE. |
|000037c0| 28 65 67 20 65 70 73 6f | 6e 20 38 2d 70 69 6e 20 |(eg epso|n 8-pin |
|000037d0| 64 6f 74 2d 6d 61 74 72 | 69 78 20 70 72 69 6e 74 |dot-matr|ix print|
|000037e0| 65 72 29 0a 0a 0a 46 75 | 6e 63 74 69 6f 6e 73 20 |er)...Fu|nctions |
|000037f0| 70 72 6f 76 69 64 65 64 | 20 61 72 65 0a 0a 28 69 |provided| are..(i|
|00003800| 6e 74 65 72 6e 61 6c 20 | 66 6e 73 20 3f 20 2d 20 |nternal |fns ? - |
|00003810| 73 68 6f 75 6c 64 20 70 | 72 6f 62 61 62 6c 79 20 |should p|robably |
|00003820| 62 65 20 73 74 61 74 69 | 63 2c 20 6e 6f 74 20 65 |be stati|c, not e|
|00003830| 78 74 65 72 6e 61 6c 20 | 3f 29 0a 62 5f 73 65 74 |xternal |?).b_set|
|00003840| 70 69 78 65 6c 28 78 2c | 79 2c 76 61 6c 75 65 29 |pixel(x,|y,value)|
|00003850| 20 20 20 20 20 0a 62 5f | 73 65 74 6d 61 73 6b 70 | .b_|setmaskp|
|00003860| 69 78 65 6c 28 78 2c 79 | 2c 76 61 6c 75 65 29 0a |ixel(x,y|,value).|
|00003870| 62 5f 70 75 74 63 28 78 | 2c 79 2c 63 68 61 72 2c |b_putc(x|,y,char,|
|00003880| 61 6e 67 6c 65 29 0a 62 | 5f 73 65 74 76 61 6c 75 |angle).b|_setvalu|
|00003890| 65 28 73 69 7a 65 29 0a | 0a 73 65 74 74 69 6e 67 |e(size).|.setting|
|000038a0| 20 75 70 20 73 74 75 66 | 66 0a 0a 62 5f 6d 61 6b | up stuf|f..b_mak|
|000038b0| 65 62 69 74 6d 61 70 28 | 78 2c 79 2c 70 6c 61 6e |ebitmap(|x,y,plan|
|000038c0| 65 73 29 20 20 2d 20 6d | 61 6b 65 20 61 20 62 69 |es) - m|ake a bi|
|000038d0| 74 6d 61 70 20 6f 66 20 | 73 69 7a 65 20 78 20 2a |tmap of |size x *|
|000038e0| 20 79 0a 62 5f 66 72 65 | 65 62 69 74 6d 61 70 28 | y.b_fre|ebitmap(|
|000038f0| 29 20 20 20 20 20 20 20 | 20 20 20 20 20 2d 20 66 |) | - f|
|00003900| 72 65 65 20 62 69 74 6d | 61 70 0a 62 5f 63 68 61 |ree bitm|ap.b_cha|
|00003910| 72 73 69 7a 65 28 73 69 | 7a 65 29 0a 0a 0a 67 6e |rsize(si|ze)...gn|
|00003920| 75 70 6c 6f 74 20 64 72 | 69 76 65 72 20 69 6e 74 |uplot dr|iver int|
|00003930| 65 72 66 61 63 65 20 66 | 75 6e 63 74 69 6f 6e 73 |erface f|unctions|
|00003940| 20 20 28 63 61 6e 20 67 | 6f 20 73 74 72 61 69 67 | (can g|o straig|
|00003950| 68 74 20 69 6e 74 6f 20 | 67 6e 75 70 6c 6f 74 20 |ht into |gnuplot |
|00003960| 73 74 72 75 63 74 75 72 | 65 29 0a 0a 62 5f 73 65 |structur|e)..b_se|
|00003970| 74 6c 69 6e 65 74 79 70 | 65 28 6c 69 6e 65 74 79 |tlinetyp|e(linety|
|00003980| 70 65 29 0a 62 5f 6d 6f | 76 65 28 78 2c 79 29 0a |pe).b_mo|ve(x,y).|
|00003990| 62 5f 76 65 63 74 6f 72 | 28 78 2c 79 29 0a 62 5f |b_vector|(x,y).b_|
|000039a0| 70 75 74 5f 74 65 78 74 | 28 78 2c 79 2c 2a 73 74 |put_text|(x,y,*st|
|000039b0| 72 29 0a 62 5f 74 65 78 | 74 5f 61 6e 67 6c 65 28 |r).b_tex|t_angle(|
|000039c0| 61 6e 67 29 0a 0a 0a 0a | 49 20 74 68 69 6e 6b 20 |ang)....|I think |
|000039d0| 74 68 61 74 20 74 68 65 | 20 6c 69 62 72 61 72 79 |that the| library|
|000039e0| 20 63 6f 75 6c 64 20 62 | 65 20 6d 61 64 65 20 65 | could b|e made e|
|000039f0| 61 73 69 65 72 20 74 6f | 20 75 73 65 20 69 66 20 |asier to| use if |
|00003a00| 77 65 20 64 65 66 69 6e | 65 64 0a 61 20 73 74 72 |we defin|ed.a str|
|00003a10| 75 63 74 75 72 65 20 77 | 68 69 63 68 20 64 65 73 |ucture w|hich des|
|00003a20| 63 72 69 62 65 64 20 74 | 68 65 20 62 69 74 6d 61 |cribed t|he bitma|
|00003a30| 70 20 28 72 61 73 74 65 | 72 20 6d 6f 64 65 2c 20 |p (raste|r mode, |
|00003a40| 70 6c 61 6e 65 73 2c 20 | 62 69 74 73 2d 70 65 72 |planes, |bits-per|
|00003a50| 2d 70 69 78 65 6c 2c 0a | 63 6f 6c 6f 75 72 73 2c |-pixel,.|colours,|
|00003a60| 20 65 74 63 29 20 61 6e | 64 20 74 68 65 6e 20 61 | etc) an|d then a|
|00003a70| 64 64 65 64 20 74 6f 20 | 74 68 65 20 67 6e 75 70 |dded to |the gnup|
|00003a80| 6c 6f 74 20 74 65 72 6d | 20 73 74 72 75 63 74 20 |lot term| struct |
|00003a90| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 0a 74 68 69 |a pointe|r to.thi|
|00003aa0| 73 20 73 74 72 75 63 74 | 75 72 65 2e 20 54 68 65 |s struct|ure. The|
|00003ab0| 6e 20 77 65 20 63 6f 75 | 6c 64 20 68 61 76 65 20 |n we cou|ld have |
|00003ac0| 62 5f 67 72 61 70 68 69 | 63 73 28 29 20 72 6f 75 |b_graphi|cs() rou|
|00003ad0| 74 69 6e 65 20 77 68 69 | 63 68 20 64 69 64 20 61 |tine whi|ch did a|
|00003ae0| 6c 6c 0a 74 68 65 20 69 | 6e 69 74 69 61 6c 69 73 |ll.the i|nitialis|
|00003af0| 61 74 69 6f 6e 20 74 68 | 61 74 20 70 72 65 73 65 |ation th|at prese|
|00003b00| 6e 74 6c 79 20 68 61 73 | 20 74 6f 20 62 65 20 64 |ntly has| to be d|
|00003b10| 6f 6e 65 20 62 79 20 74 | 68 65 20 64 72 69 76 65 |one by t|he drive|
|00003b20| 72 20 67 72 61 70 68 69 | 63 73 28 29 0a 65 6e 74 |r graphi|cs().ent|
|00003b30| 72 79 20 70 6f 69 6e 74 | 2e 20 20 41 6c 73 6f 2c |ry point|. Also,|
|00003b40| 20 6f 6e 65 20 64 61 79 | 20 49 20 77 6f 75 6c 64 | one day| I would|
|00003b50| 20 6c 69 6b 65 20 74 6f | 20 68 61 76 65 20 70 61 | like to| have pa|
|00003b60| 72 73 69 6e 67 2c 20 69 | 6e 63 6c 75 64 69 6e 67 |rsing, i|ncluding|
|00003b70| 0a 74 65 72 6d 69 6e 61 | 6c 20 64 72 69 76 65 72 |.termina|l driver|
|00003b80| 20 6f 70 74 69 6f 6e 73 | 2c 20 74 61 62 6c 65 2d | options|, table-|
|00003b90| 64 72 69 76 65 6e 2c 20 | 62 75 74 20 49 27 6d 20 |driven, |but I'm |
|00003ba0| 67 65 74 74 69 6e 67 20 | 61 68 65 61 64 20 6f 66 |getting |ahead of|
|00003bb0| 20 6d 79 73 65 6c 66 0a | 68 65 72 65 2e 0a 0a 0a | myself.|here....|
|00003bc0| 41 74 20 70 72 65 73 65 | 6e 74 2c 20 62 69 74 6d |At prese|nt, bitm|
|00003bd0| 61 70 2e 63 20 69 73 20 | 6c 69 6e 6b 65 64 20 69 |ap.c is |linked i|
|00003be0| 6e 74 6f 20 67 6e 75 70 | 6c 6f 74 20 75 6e 63 6f |nto gnup|lot unco|
|00003bf0| 6e 64 69 74 69 6f 6e 61 | 6c 6c 79 2e 20 50 65 72 |nditiona|lly. Per|
|00003c00| 68 61 70 73 0a 69 74 20 | 73 68 6f 75 6c 64 20 62 |haps.it |should b|
|00003c10| 65 20 70 75 74 20 69 6e | 74 6f 20 61 20 6c 69 62 |e put in|to a lib|
|00003c20| 72 61 72 79 2c 20 73 6f | 20 74 68 61 74 20 69 74 |rary, so| that it|
|00003c30| 20 69 73 20 6c 69 6e 6b | 65 64 20 69 6e 20 6f 6e | is link|ed in on|
|00003c40| 6c 79 20 69 66 0a 61 6e | 79 20 6f 66 20 74 68 65 |ly if.an|y of the|
|00003c50| 20 75 73 65 72 2d 73 65 | 6c 65 63 74 65 64 20 64 | user-se|lected d|
|00003c60| 72 69 76 65 72 73 20 72 | 65 71 75 69 72 65 20 62 |rivers r|equire b|
|00003c70| 69 74 6d 61 70 20 73 75 | 70 70 6f 72 74 2e 0a 0a |itmap su|pport...|
|00003c80| 54 68 65 72 65 20 6d 61 | 79 20 62 65 20 73 63 6f |There ma|y be sco|
|00003c90| 70 65 20 74 6f 20 64 6f | 20 73 69 6d 69 6c 61 72 |pe to do| similar|
|00003ca0| 20 74 68 69 6e 67 73 20 | 77 69 74 68 20 73 6f 6d | things |with som|
|00003cb0| 65 20 6f 66 20 74 68 65 | 20 6f 74 68 65 72 0a 73 |e of the| other.s|
|00003cc0| 74 75 66 66 20 74 68 61 | 74 20 69 73 20 73 68 61 |tuff tha|t is sha|
|00003cd0| 72 65 64 20 62 79 20 73 | 65 76 65 72 61 6c 20 64 |red by s|everal d|
|00003ce0| 72 69 76 65 72 73 2e 20 | 52 61 74 68 65 72 20 74 |rivers. |Rather t|
|00003cf0| 68 61 6e 20 72 65 71 75 | 69 72 69 6e 67 2c 0a 66 |han requ|iring,.f|
|00003d00| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 74 68 61 74 |or examp|le, that|
|00003d10| 20 4c 41 54 45 58 20 64 | 72 69 76 65 72 20 69 73 | LATEX d|river is|
|00003d20| 20 72 65 71 75 69 72 65 | 64 20 69 66 20 45 4d 54 | require|d if EMT|
|00003d30| 45 58 20 69 73 20 74 6f | 20 62 65 20 75 73 65 64 |EX is to| be used|
|00003d40| 2c 0a 74 68 65 20 73 68 | 61 72 65 64 20 72 6f 75 |,.the sh|ared rou|
|00003d50| 74 69 6e 65 73 20 63 6f | 75 6c 64 20 62 65 20 65 |tines co|uld be e|
|00003d60| 78 74 72 61 63 74 65 64 | 20 74 6f 20 61 20 6c 69 |xtracted| to a li|
|00003d70| 62 72 61 72 79 20 61 6e | 64 20 6c 69 6e 6b 65 64 |brary an|d linked|
|00003d80| 0a 69 66 20 61 6e 79 20 | 6f 66 20 74 68 65 20 64 |.if any |of the d|
|00003d90| 72 69 76 65 72 73 20 77 | 68 69 63 68 20 75 73 65 |rivers w|hich use|
|00003da0| 20 74 68 65 6d 20 61 72 | 65 20 75 73 65 64 2e 20 | them ar|e used. |
|00003db0| 20 4a 75 73 74 20 61 20 | 74 68 6f 75 67 68 74 2e | Just a |thought.|
|00003dc0| 2e 2e 0a 0a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |....----|--------|
|00003dd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003de0| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 0a 46 49 4c 45 20 4c |--------|..FILE L|
|00003df0| 41 59 4f 55 54 0a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |AYOUT.--|--------|
|00003e00| 2d 0a 0a 49 20 74 68 69 | 6e 6b 20 61 20 66 69 6c |-..I thi|nk a fil|
|00003e10| 65 20 6c 61 79 6f 75 74 | 20 6c 69 6b 65 20 74 68 |e layout| like th|
|00003e20| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 77 69 6c 6c |e follow|ing will|
|00003e30| 20 6c 65 61 76 65 20 6d | 6f 73 74 20 66 6c 65 78 | leave m|ost flex|
|00003e40| 69 62 69 6c 69 74 79 0a | 74 6f 20 74 68 65 20 67 |ibility.|to the g|
|00003e50| 6e 75 70 6c 6f 74 20 6d | 61 69 6e 74 61 69 6e 65 |nuplot m|aintaine|
|00003e60| 72 73 2e 20 49 20 75 73 | 65 20 52 45 47 49 53 20 |rs. I us|e REGIS |
|00003e70| 66 6f 72 20 65 78 61 6d | 70 6c 65 2e 0a 0a 0a 23 |for exam|ple....#|
|00003e80| 69 6e 63 6c 75 64 65 20 | 22 64 72 69 76 65 72 2e |include |"driver.|
|00003e90| 68 22 0a 0a 0a 23 69 66 | 64 65 66 20 54 45 52 4d |h"...#if|def TERM|
|00003ea0| 5f 52 45 47 49 53 54 45 | 52 0a 72 65 67 69 73 74 |_REGISTE|R.regist|
|00003eb0| 65 72 5f 74 65 72 6d 28 | 72 65 67 69 73 29 20 2f |er_term(|regis) /|
|00003ec0| 2a 20 6e 6f 20 3b 20 2a | 2f 0a 23 65 6e 64 69 66 |* no ; *|/.#endif|
|00003ed0| 0a 0a 0a 23 69 66 64 65 | 66 20 54 45 52 4d 5f 50 |...#ifde|f TERM_P|
|00003ee0| 52 4f 54 4f 0a 54 45 52 | 4d 5f 50 55 42 4c 49 43 |ROTO.TER|M_PUBLIC|
|00003ef0| 20 76 6f 69 64 20 52 45 | 47 49 53 69 6e 69 74 20 | void RE|GISinit |
|00003f00| 5f 5f 50 52 4f 54 4f 28 | 28 76 6f 69 64 29 29 3b |__PROTO(|(void));|
|00003f10| 0a 54 45 52 4d 5f 50 55 | 42 4c 49 43 20 76 6f 69 |.TERM_PU|BLIC voi|
|00003f20| 64 20 52 45 47 49 53 67 | 72 61 70 68 69 63 73 20 |d REGISg|raphics |
|00003f30| 5f 5f 50 52 4f 54 4f 28 | 28 76 6f 69 64 29 29 3b |__PROTO(|(void));|
|00003f40| 0a 2f 2a 20 65 74 63 20 | 2a 2f 0a 23 64 65 66 69 |./* etc |*/.#defi|
|00003f50| 6e 65 20 47 4f 54 5f 52 | 45 47 49 53 5f 50 52 4f |ne GOT_R|EGIS_PRO|
|00003f60| 54 4f 0a 23 65 6e 64 69 | 66 0a 0a 0a 23 69 66 6e |TO.#endi|f...#ifn|
|00003f70| 64 65 66 20 54 45 52 4d | 5f 50 52 4f 54 4f 5f 4f |def TERM|_PROTO_O|
|00003f80| 4e 4c 59 0a 23 69 66 64 | 65 66 20 54 45 52 4d 5f |NLY.#ifd|ef TERM_|
|00003f90| 42 4f 44 59 0a 0a 54 45 | 52 4d 5f 50 55 42 4c 49 |BODY..TE|RM_PUBLI|
|00003fa0| 43 20 76 6f 69 64 20 52 | 45 47 49 53 69 6e 69 74 |C void R|EGISinit|
|00003fb0| 28 29 0a 7b 0a 20 20 2f | 2a 20 65 74 63 20 2a 2f |().{. /|* etc */|
|00003fc0| 0a 7d 0a 0a 2f 2a 20 65 | 74 63 20 2a 2f 0a 0a 23 |.}../* e|tc */..#|
|00003fd0| 65 6e 64 69 66 0a 0a 0a | 23 69 66 64 65 66 20 54 |endif...|#ifdef T|
|00003fe0| 45 52 4d 5f 54 41 42 4c | 45 0a 0a 54 45 52 4d 5f |ERM_TABL|E..TERM_|
|00003ff0| 54 41 42 4c 45 5f 53 54 | 41 52 54 28 72 65 67 69 |TABLE_ST|ART(regi|
|00004000| 73 5f 64 72 69 76 65 72 | 29 0a 20 20 2f 2a 20 6e |s_driver|). /* n|
|00004010| 6f 20 7b 20 2a 2f 0a 20 | 20 22 72 65 67 69 73 22 |o { */. | "regis"|
|00004020| 2c 20 22 52 45 47 49 53 | 20 67 72 61 70 68 69 63 |, "REGIS| graphic|
|00004030| 73 20 6c 61 6e 67 75 61 | 67 65 22 2c 0a 20 20 52 |s langua|ge",. R|
|00004040| 45 47 49 53 58 4d 41 58 | 2c 20 2f 2a 20 65 74 63 |EGISXMAX|, /* etc|
|00004050| 20 2a 2f 0a 20 20 2f 2a | 20 6e 6f 20 7d 20 2a 2f | */. /*| no } */|
|00004060| 0a 54 45 52 4d 5f 54 41 | 42 4c 45 5f 45 4e 44 28 |.TERM_TA|BLE_END(|
|00004070| 72 65 67 69 73 5f 64 72 | 69 76 65 72 29 0a 0a 23 |regis_dr|iver)..#|
|00004080| 75 6e 64 65 66 20 4c 41 | 53 54 5f 54 45 52 4d 0a |undef LA|ST_TERM.|
|00004090| 23 64 65 66 69 6e 65 20 | 4c 41 53 54 5f 54 45 52 |#define |LAST_TER|
|000040a0| 4d 20 72 65 67 69 73 5f | 64 72 69 76 65 72 0a 0a |M regis_|driver..|
|000040b0| 23 65 6e 64 69 66 20 2f | 2a 20 54 45 52 4d 5f 54 |#endif /|* TERM_T|
|000040c0| 41 42 4c 45 20 2a 2f 0a | 23 65 6e 64 69 66 20 2f |ABLE */.|#endif /|
|000040d0| 2a 20 54 45 52 4d 5f 50 | 52 4f 54 4f 5f 4f 4e 4c |* TERM_P|ROTO_ONL|
|000040e0| 59 20 2a 2f 0a 0a 0a 0a | 0a 23 69 66 64 65 66 20 |Y */....|.#ifdef |
|000040f0| 54 45 52 4d 5f 48 45 4c | 50 0a 53 54 41 52 54 5f |TERM_HEL|P.START_|
|00004100| 48 45 4c 50 28 72 65 67 | 69 73 29 0a 22 31 20 72 |HELP(reg|is)."1 r|
|00004110| 65 67 69 73 22 2c 0a 22 | 3f 73 65 74 20 74 65 72 |egis",."|?set ter|
|00004120| 6d 69 6e 61 6c 20 72 65 | 67 69 73 22 2c 0a 22 3f |minal re|gis",."?|
|00004130| 72 65 67 69 73 22 2c 0a | 22 20 54 68 65 20 60 72 |regis",.|" The `r|
|00004140| 65 67 69 73 60 20 74 65 | 72 6d 69 6e 61 6c 20 64 |egis` te|rminal d|
|00004150| 65 76 69 63 65 20 67 65 | 6e 65 72 61 74 65 73 20 |evice ge|nerates |
|00004160| 6f 75 74 70 75 74 20 69 | 6e 20 74 68 65 20 52 45 |output i|n the RE|
|00004170| 47 49 53 20 67 72 61 70 | 68 69 63 73 20 6c 61 6e |GIS grap|hics lan|
|00004180| 67 75 61 67 65 2e 22 2c | 0a 22 20 49 74 20 68 61 |guage.",|." It ha|
|00004190| 73 20 74 68 65 20 6f 70 | 74 69 6f 6e 20 6f 66 20 |s the op|tion of |
|000041a0| 75 73 69 6e 67 20 34 20 | 28 74 68 65 20 64 65 66 |using 4 |(the def|
|000041b0| 61 75 6c 74 29 20 6f 72 | 20 31 36 20 63 6f 6c 6f |ault) or| 16 colo|
|000041c0| 72 73 2e 22 2c 0a 22 22 | 2c 0a 22 20 53 79 6e 74 |rs.",.""|,." Synt|
|000041d0| 61 78 3a 22 2c 0a 22 20 | 20 20 20 20 20 20 20 20 |ax:",." | |
|000041e0| 73 65 74 20 74 65 72 6d | 20 72 65 67 69 73 20 7b |set term| regis {|
|000041f0| 34 20 7c 20 31 36 7d 22 | 0a 45 4e 44 5f 48 45 4c |4 | 16}"|.END_HEL|
|00004200| 50 28 72 65 67 69 73 29 | 0a 23 65 6e 64 69 66 0a |P(regis)|.#endif.|
|00004210| 0a 0a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..------|--------|
|00004220| 0a 0a 54 68 65 20 66 69 | 72 73 74 20 74 68 72 65 |..The fi|rst thre|
|00004230| 65 20 6c 69 6e 65 73 20 | 69 6e 20 74 68 65 20 54 |e lines |in the T|
|00004240| 45 52 4d 5f 48 45 4c 50 | 20 73 65 63 74 69 6f 6e |ERM_HELP| section|
|00004250| 20 6d 75 73 74 20 63 6f | 6e 74 61 69 6e 20 74 68 | must co|ntain th|
|00004260| 65 20 73 61 6d 65 0a 6e | 61 6d 65 20 61 73 20 74 |e same.n|ame as t|
|00004270| 68 61 74 20 73 70 65 63 | 69 66 69 65 64 20 62 79 |hat spec|ified by|
|00004280| 20 72 65 67 69 73 74 65 | 72 5f 74 65 72 6d 2c 20 | registe|r_term, |
|00004290| 73 69 6e 63 65 20 74 68 | 69 73 20 69 73 20 74 68 |since th|is is th|
|000042a0| 65 20 6e 61 6d 65 20 74 | 68 61 74 0a 77 69 6c 6c |e name t|hat.will|
|000042b0| 20 62 65 20 65 6e 74 65 | 72 65 64 20 69 6e 74 6f | be ente|red into|
|000042c0| 20 74 68 65 20 6c 69 73 | 74 20 6f 66 20 61 76 61 | the lis|t of ava|
|000042d0| 69 6c 61 62 6c 65 20 74 | 65 72 6d 69 6e 61 6c 73 |ilable t|erminals|
|000042e0| 2e 20 20 49 66 20 6d 6f | 72 65 20 74 68 61 6e 0a |. If mo|re than.|
|000042f0| 6f 6e 65 20 6e 61 6d 65 | 20 69 73 20 72 65 67 69 |one name| is regi|
|00004300| 73 74 65 72 65 64 2c 20 | 74 68 65 20 61 64 64 69 |stered, |the addi|
|00004310| 74 69 6f 6e 61 6c 20 6e | 61 6d 65 73 20 73 68 6f |tional n|ames sho|
|00004320| 75 6c 64 20 68 61 76 65 | 20 74 68 65 69 72 20 6f |uld have| their o|
|00004330| 77 6e 0a 74 77 6f 20 22 | 3f 22 20 6c 69 6e 65 73 |wn.two "|?" lines|
|00004340| 2c 20 62 75 74 20 6e 6f | 74 20 74 68 65 20 22 31 |, but no|t the "1|
|00004350| 22 20 6c 69 6e 65 2e 0a | 0a 45 61 63 68 20 72 65 |" line..|.Each re|
|00004360| 63 6f 72 64 20 69 73 20 | 65 6e 63 6c 6f 73 65 64 |cord is |enclosed|
|00004370| 20 69 6e 20 64 6f 75 62 | 6c 65 2d 71 75 6f 74 65 | in doub|le-quote|
|00004380| 73 20 61 6e 64 20 28 65 | 78 63 65 70 74 20 66 6f |s and (e|xcept fo|
|00004390| 72 20 74 68 65 20 6c 61 | 73 74 0a 72 65 63 6f 72 |r the la|st.recor|
|000043a0| 64 29 20 66 6f 6c 6c 6f | 77 65 64 20 62 79 20 61 |d) follo|wed by a|
|000043b0| 20 63 6f 6d 6d 61 2e 20 | 20 54 68 65 20 74 65 78 | comma. | The tex|
|000043c0| 74 20 69 73 20 63 6f 70 | 69 65 64 20 61 73 20 61 |t is cop|ied as a|
|000043d0| 20 73 69 6e 67 6c 65 20 | 73 74 72 69 6e 67 0a 69 | single |string.i|
|000043e0| 6e 74 6f 20 67 6e 75 70 | 6c 6f 74 2e 64 6f 63 2c |nto gnup|lot.doc,|
|000043f0| 20 73 6f 20 74 68 65 20 | 73 79 6e 74 61 78 20 6d | so the |syntax m|
|00004400| 75 73 74 20 6f 62 65 79 | 20 74 68 65 20 72 75 6c |ust obey| the rul|
|00004410| 65 73 20 6f 66 20 74 68 | 61 74 20 65 6e 74 69 74 |es of th|at entit|
|00004420| 79 2e 0a 49 66 20 74 68 | 65 20 74 65 78 74 20 69 |y..If th|e text i|
|00004430| 6e 63 6c 75 64 65 73 20 | 64 6f 75 62 6c 65 2d 71 |ncludes |double-q|
|00004440| 75 6f 74 65 73 20 6f 72 | 20 62 61 63 6b 73 6c 61 |uotes or| backsla|
|00004450| 73 68 65 73 2c 20 74 68 | 65 73 65 20 6d 75 73 74 |shes, th|ese must|
|00004460| 20 62 65 0a 65 73 63 61 | 70 65 64 20 62 79 20 70 | be.esca|ped by p|
|00004470| 72 65 63 65 64 69 6e 67 | 20 65 61 63 68 20 6f 63 |receding| each oc|
|00004480| 63 75 72 65 6e 63 65 20 | 77 69 74 68 20 61 20 62 |curence |with a b|
|00004490| 61 63 6b 73 6c 61 73 68 | 2e 0a 0a 2d 2d 2d 2d 2d |ackslash|...-----|
|000044a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 0a 52 61 74 69 6f |--------|-..Ratio|
|000044b0| 6e 61 6c 65 3a 0a 0a 57 | 65 20 6d 61 79 20 77 61 |nale:..W|e may wa|
|000044c0| 6e 74 20 74 6f 20 63 6f | 6d 70 69 6c 65 20 61 6c |nt to co|mpile al|
|000044d0| 6c 20 64 72 69 76 65 72 | 73 20 69 6e 74 6f 20 74 |l driver|s into t|
|000044e0| 65 72 6d 2e 63 20 6f 72 | 20 6f 6e 65 20 64 72 69 |erm.c or| one dri|
|000044f0| 76 65 72 20 61 74 20 61 | 20 74 69 6d 65 0a 74 68 |ver at a| time.th|
|00004500| 69 73 20 6c 61 79 6f 75 | 74 20 73 68 6f 75 6c 64 |is layou|t should|
|00004510| 20 73 75 70 70 6f 72 74 | 20 62 6f 74 68 0a 54 45 | support| both.TE|
|00004520| 52 4d 5f 50 55 42 4c 49 | 43 20 77 69 6c 6c 20 62 |RM_PUBLI|C will b|
|00004530| 65 20 73 74 61 74 69 63 | 20 20 69 66 20 61 6c 6c |e static| if all|
|00004540| 20 6d 6f 64 75 6c 65 73 | 20 61 72 65 20 69 6e 20 | modules| are in |
|00004550| 74 65 72 6d 2e 63 2c 20 | 6f 72 20 62 6c 61 6e 6b |term.c, |or blank|
|00004560| 0a 6f 74 68 65 72 77 69 | 73 65 2e 0a 50 6c 65 61 |.otherwi|se..Plea|
|00004570| 73 65 20 6d 61 6b 65 20 | 70 72 69 76 61 74 65 20 |se make |private |
|00004580| 73 75 70 70 6f 72 74 20 | 66 75 6e 63 74 69 6f 6e |support |function|
|00004590| 73 20 73 74 61 74 69 63 | 20 69 66 20 70 6f 73 73 |s static| if poss|
|000045a0| 69 62 6c 65 2e 0a 0a 0a | 57 65 20 6d 61 79 20 69 |ible....|We may i|
|000045b0| 6e 63 6c 75 64 65 20 74 | 65 72 6d 2e 68 2c 20 61 |nclude t|erm.h, a|
|000045c0| 6e 64 20 74 68 65 72 65 | 66 6f 72 65 20 61 6c 6c |nd there|fore all|
|000045d0| 20 74 68 65 73 65 20 66 | 69 6c 65 73 2c 20 6f 6e | these f|iles, on|
|000045e0| 65 20 6f 72 20 6d 6f 72 | 65 20 74 69 6d 65 73 2e |e or mor|e times.|
|000045f0| 0a 49 66 20 6a 75 73 74 | 20 6f 6e 63 65 20 28 61 |.If just| once (a|
|00004600| 6c 6c 20 6d 6f 64 75 6c | 65 73 20 63 6f 6d 70 69 |ll modul|es compi|
|00004610| 6c 65 64 20 69 6e 74 6f | 20 74 65 72 6d 2e 63 29 |led into| term.c)|
|00004620| 20 70 75 74 74 69 6e 67 | 20 74 68 65 20 66 6f 75 | putting| the fou|
|00004630| 72 0a 70 61 72 74 73 20 | 69 6e 20 74 68 69 73 20 |r.parts |in this |
|00004640| 6f 72 64 65 72 20 73 68 | 6f 75 6c 64 20 6d 61 6b |order sh|ould mak|
|00004650| 65 20 69 74 20 77 6f 72 | 6b 2e 0a 0a 77 65 20 6d |e it wor|k...we m|
|00004660| 61 79 20 63 6f 6d 70 69 | 6c 65 20 74 68 65 20 74 |ay compi|le the t|
|00004670| 61 62 6c 65 20 65 6e 74 | 72 69 65 73 20 69 6e 74 |able ent|ries int|
|00004680| 6f 20 65 69 74 68 65 72 | 20 61 6e 20 61 72 72 61 |o either| an arra|
|00004690| 79 20 6f 72 20 61 20 6c | 69 6e 6b 65 64 20 6c 69 |y or a l|inked li|
|000046a0| 73 74 0a 54 68 69 73 20 | 6f 72 67 61 6e 69 73 61 |st.This |organisa|
|000046b0| 74 69 6f 6e 20 73 68 6f | 75 6c 64 20 73 75 70 70 |tion sho|uld supp|
|000046c0| 6f 72 74 20 62 6f 74 68 | 0a 0a 46 6f 72 20 73 65 |ort both|..For se|
|000046d0| 70 61 72 61 74 65 20 63 | 6f 6d 70 69 6c 61 74 69 |parate c|ompilati|
|000046e0| 6f 6e 2c 20 77 65 20 6d | 61 79 20 77 72 69 74 65 |on, we m|ay write|
|000046f0| 20 61 20 70 72 6f 67 72 | 61 6d 20 77 68 69 63 68 | a progr|am which|
|00004700| 0a 64 65 66 69 6e 65 73 | 20 54 45 52 4d 5f 52 45 |.defines| TERM_RE|
|00004710| 47 49 53 54 45 52 20 61 | 6e 64 20 23 69 6e 63 6c |GISTER a|nd #incl|
|00004720| 75 64 65 20 74 65 72 6d | 2e 68 20 74 6f 20 66 69 |ude term|.h to fi|
|00004730| 6e 64 20 6f 75 74 20 77 | 68 69 63 68 20 64 72 69 |nd out w|hich dri|
|00004740| 76 65 72 73 20 61 72 65 | 0a 73 65 6c 65 63 74 65 |vers are|.selecte|
|00004750| 64 20 69 6e 20 74 65 72 | 6d 2e 68 20 61 6e 64 20 |d in ter|m.h and |
|00004760| 74 68 65 72 65 62 79 20 | 67 65 6e 65 72 61 74 65 |thereby |generate|
|00004770| 20 61 20 6d 61 6b 65 66 | 69 6c 65 2e 0a 0a 0a 0a | a makef|ile.....|
|00004780| 46 6f 72 20 61 20 64 72 | 69 76 65 72 20 77 68 69 |For a dr|iver whi|
|00004790| 63 68 20 64 65 70 65 6e | 64 73 20 6f 6e 20 61 6e |ch depen|ds on an|
|000047a0| 6f 74 68 65 72 20 28 65 | 67 20 65 6e 68 70 6f 73 |other (e|g enhpos|
|000047b0| 74 20 61 6e 64 20 70 73 | 6c 61 74 65 78 20 6f 6e |t and ps|latex on|
|000047c0| 20 70 6f 73 74 29 0a 74 | 68 65 20 64 72 69 76 65 | post).t|he drive|
|000047d0| 72 20 63 61 6e 20 64 6f | 20 73 6f 6d 65 74 68 69 |r can do| somethi|
|000047e0| 6e 67 20 6c 69 6b 65 0a | 0a 23 69 66 6e 64 65 66 |ng like.|.#ifndef|
|000047f0| 20 47 4f 54 5f 50 4f 53 | 54 5f 50 52 4f 54 4f 0a | GOT_POS|T_PROTO.|
|00004800| 23 64 65 66 69 6e 65 20 | 54 45 52 4d 5f 50 52 4f |#define |TERM_PRO|
|00004810| 54 4f 5f 4f 4e 4c 59 0a | 23 69 6e 63 6c 75 64 65 |TO_ONLY.|#include|
|00004820| 20 22 70 6f 73 74 2e 74 | 72 6d 22 0a 23 75 6e 64 | "post.t|rm".#und|
|00004830| 65 66 20 54 45 52 4d 5f | 50 52 4f 54 4f 5f 4f 4e |ef TERM_|PROTO_ON|
|00004840| 4c 59 0a 23 65 6e 64 69 | 66 0a 0a 74 68 69 73 20 |LY.#endi|f..this |
|00004850| 69 73 20 70 72 6f 62 61 | 62 6c 79 20 6e 65 65 64 |is proba|bly need|
|00004860| 65 64 20 6f 6e 6c 79 20 | 69 6e 20 74 68 65 20 54 |ed only |in the T|
|00004870| 45 52 4d 5f 54 41 42 4c | 45 20 73 65 63 74 69 6f |ERM_TABL|E sectio|
|00004880| 6e 20 6f 6e 6c 79 2c 20 | 62 75 74 20 6d 61 79 0a |n only, |but may.|
|00004890| 61 6c 73 6f 20 62 65 20 | 75 73 65 64 20 69 6e 20 |also be |used in |
|000048a0| 74 68 65 20 62 6f 64 79 | 2e 20 54 68 65 20 54 45 |the body|. The TE|
|000048b0| 52 4d 5f 50 52 4f 54 4f | 5f 4f 4e 4c 59 20 6d 65 |RM_PROTO|_ONLY me|
|000048c0| 61 6e 73 20 74 68 61 74 | 20 77 65 20 70 69 63 6b |ans that| we pick|
|000048d0| 20 75 70 0a 6f 6e 6c 79 | 20 74 68 65 20 70 72 6f | up.only| the pro|
|000048e0| 74 6f 73 20 66 72 6f 6d | 20 70 6f 73 74 2e 74 72 |tos from| post.tr|
|000048f0| 6d 2c 20 65 76 65 6e 20 | 69 66 20 63 75 72 72 65 |m, even |if curre|
|00004900| 6e 74 20 64 72 69 76 65 | 72 20 69 73 20 62 65 69 |nt drive|r is bei|
|00004910| 6e 67 20 63 6f 6d 70 69 | 6c 65 64 0a 77 69 74 68 |ng compi|led.with|
|00004920| 20 54 45 52 4d 5f 42 4f | 44 59 20 6f 72 20 54 45 | TERM_BO|DY or TE|
|00004930| 52 4d 5f 54 41 42 4c 45 | 0a 0a 49 66 20 77 65 20 |RM_TABLE|..If we |
|00004940| 64 6f 20 69 74 20 74 68 | 65 20 6c 69 6e 6b 65 64 |do it th|e linked|
|00004950| 2d 6c 69 73 74 20 77 61 | 79 2c 20 74 68 65 20 61 |-list wa|y, the a|
|00004960| 72 67 20 74 6f 20 54 45 | 52 4d 5f 54 41 42 4c 45 |rg to TE|RM_TABLE|
|00004970| 5f 53 54 41 52 54 20 77 | 69 6c 6c 20 62 65 0a 74 |_START w|ill be.t|
|00004980| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 76 |he name |of the v|
|00004990| 61 72 69 61 62 6c 65 2c | 20 73 6f 20 61 6e 79 20 |ariable,| so any |
|000049a0| 76 61 6c 69 64 2c 20 75 | 6e 69 71 75 65 20 6e 61 |valid, u|nique na|
|000049b0| 6d 65 20 69 73 20 66 69 | 6e 65 2e 0a 54 68 65 20 |me is fi|ne..The |
|000049c0| 54 45 52 4d 5f 54 41 42 | 4c 45 5f 53 54 41 52 54 |TERM_TAB|LE_START|
|000049d0| 20 6d 61 63 72 6f 20 77 | 69 6c 6c 20 64 6f 20 61 | macro w|ill do a|
|000049e0| 6c 6c 20 74 68 65 20 77 | 6f 72 6b 20 6f 66 20 6c |ll the w|ork of l|
|000049f0| 69 6e 6b 69 6e 67 20 74 | 68 65 20 65 6e 74 72 69 |inking t|he entri|
|00004a00| 65 73 0a 74 6f 67 65 74 | 68 65 72 2c 20 70 72 6f |es.toget|her, pro|
|00004a10| 62 61 62 6c 79 20 75 73 | 69 6e 67 20 4c 41 53 54 |bably us|ing LAST|
|00004a20| 5f 54 45 52 4d 0a 0a 54 | 68 65 20 69 6e 63 6c 75 |_TERM..T|he inclu|
|00004a30| 73 69 6f 6e 20 6f 66 20 | 74 68 65 20 54 45 52 4d |sion of |the TERM|
|00004a40| 5f 48 45 4c 50 20 73 65 | 63 74 69 6f 6e 20 28 61 |_HELP se|ction (a|
|00004a50| 6e 64 20 72 65 6d 6f 76 | 61 6c 20 6f 66 20 74 65 |nd remov|al of te|
|00004a60| 72 6d 69 6e 61 6c 20 64 | 6f 63 75 6d 65 6e 74 61 |rminal d|ocumenta|
|00004a70| 74 69 6f 6e 0a 66 72 6f | 6d 20 74 68 65 20 6d 61 |tion.fro|m the ma|
|00004a80| 73 74 65 72 20 67 6e 75 | 70 6c 6f 74 2e 64 6f 63 |ster gnu|plot.doc|
|00004a90| 20 66 69 6c 65 29 20 6d | 65 61 6e 73 20 74 68 61 | file) m|eans tha|
|00004aa0| 74 20 74 68 65 20 6f 6e | 6c 69 6e 65 20 68 65 6c |t the on|line hel|
|00004ab0| 70 20 77 69 6c 6c 20 69 | 6e 63 6c 75 64 65 0a 64 |p will i|nclude.d|
|00004ac0| 69 73 63 75 73 73 69 6f | 6e 73 20 6f 66 20 6f 6e |iscussio|ns of on|
|00004ad0| 6c 79 20 74 68 6f 73 65 | 20 74 65 72 6d 69 6e 61 |ly those| termina|
|00004ae0| 6c 73 20 61 76 61 69 6c | 61 62 6c 65 20 74 6f 20 |ls avail|able to |
|00004af0| 74 68 65 20 75 73 65 72 | 2e 20 20 46 6f 72 20 67 |the user|. For g|
|00004b00| 65 6e 65 72 61 74 69 6f | 6e 0a 6f 66 20 74 68 65 |eneratio|n.of the|
|00004b10| 20 70 72 69 6e 74 65 64 | 20 6d 61 6e 75 61 6c 2c | printed| manual,|
|00004b20| 20 61 6c 6c 20 63 61 6e | 20 62 65 20 69 6e 63 6c | all can| be incl|
|00004b30| 75 64 65 64 2e 0a 0a 0a | 50 6c 65 61 73 65 20 6d |uded....|Please m|
|00004b40| 61 6b 65 20 61 73 20 6d | 61 6e 79 20 74 68 69 6e |ake as m|any thin|
|00004b50| 67 73 20 61 73 20 70 6f | 73 73 69 62 6c 65 20 73 |gs as po|ssible s|
|00004b60| 74 61 74 69 63 2c 20 62 | 75 74 20 64 6f 20 73 74 |tatic, b|ut do st|
|00004b70| 69 6c 6c 20 74 72 79 20 | 74 6f 20 75 73 65 20 75 |ill try |to use u|
|00004b80| 6e 69 71 75 65 0a 6e 61 | 6d 65 73 20 73 69 6e 63 |nique.na|mes sinc|
|00004b90| 65 20 61 6c 6c 20 64 72 | 69 76 65 72 73 20 6d 61 |e all dr|ivers ma|
|00004ba0| 79 20 61 6c 6c 20 62 65 | 20 63 6f 6d 70 69 6c 65 |y all be| compile|
|00004bb0| 64 20 69 6e 74 6f 20 74 | 65 72 6d 2e 6f 0a 0a 54 |d into t|erm.o..T|
|00004bc0| 68 65 20 62 69 74 20 69 | 6e 20 74 68 65 20 50 52 |he bit i|n the PR|
|00004bd0| 4f 54 4f 20 73 65 63 74 | 69 6f 6e 20 69 73 20 62 |OTO sect|ion is b|
|00004be0| 61 73 69 63 61 6c 6c 79 | 20 77 68 61 74 20 79 6f |asically| what yo|
|00004bf0| 75 20 77 6f 75 6c 64 20 | 70 75 74 20 69 6e 74 6f |u would |put into|
|00004c00| 20 61 20 2e 68 0a 66 69 | 6c 65 20 69 66 20 77 65 | a .h.fi|le if we|
|00004c10| 20 68 61 64 20 74 68 65 | 6d 20 2d 20 65 76 65 72 | had the|m - ever|
|00004c20| 79 74 68 69 6e 67 20 74 | 68 61 74 20 69 73 20 6e |ything t|hat is n|
|00004c30| 65 65 64 65 64 20 62 79 | 20 74 68 65 20 54 41 42 |eeded by| the TAB|
|00004c40| 4c 45 5f 45 4e 54 52 59 | 0a 73 68 6f 75 6c 64 20 |LE_ENTRY|.should |
|00004c50| 62 65 20 64 65 66 69 6e | 65 64 20 69 6e 20 74 68 |be defin|ed in th|
|00004c60| 69 73 20 70 61 72 74 2e | 20 49 6e 20 70 61 72 74 |is part.| In part|
|00004c70| 69 63 75 6c 61 72 2c 20 | 64 6f 6e 74 20 66 6f 72 |icular, |dont for|
|00004c80| 67 65 74 20 61 6c 6c 20 | 74 68 65 20 6d 61 78 65 |get all |the maxe|
|00004c90| 73 0a 61 6e 64 20 63 68 | 61 72 61 63 74 65 72 20 |s.and ch|aracter |
|00004ca0| 73 69 7a 65 73 20 61 6e | 64 20 74 68 69 6e 67 73 |sizes an|d things|
|00004cb0| 20 66 6f 72 20 74 68 65 | 20 74 61 62 6c 65 20 65 | for the| table e|
|00004cc0| 6e 74 72 79 2e 0a 0a 44 | 6f 6e 74 20 66 6f 72 67 |ntry...D|ont forg|
|00004cd0| 65 74 20 74 6f 20 70 75 | 74 20 54 45 52 4d 5f 50 |et to pu|t TERM_P|
|00004ce0| 55 42 4c 49 43 20 69 6e | 20 74 68 65 20 64 65 66 |UBLIC in| the def|
|00004cf0| 6e 73 20 6f 66 20 74 68 | 65 20 66 6e 73 20 61 73 |ns of th|e fns as|
|00004d00| 20 77 65 6c 6c 20 61 73 | 20 74 68 65 0a 70 72 6f | well as| the.pro|
|00004d10| 74 6f 74 79 70 65 73 2e | 20 49 74 20 77 69 6c 6c |totypes.| It will|
|00004d20| 20 70 72 6f 62 61 62 6c | 79 20 61 6c 77 61 79 73 | probabl|y always|
|00004d30| 20 65 78 70 61 6e 64 20 | 74 6f 20 27 73 74 61 74 | expand |to 'stat|
|00004d40| 69 63 27 20 65 78 63 65 | 70 74 20 66 6f 72 20 70 |ic' exce|pt for p|
|00004d50| 63 73 2e 0a | |cs.. | |
+--------+-------------------------+-------------------------+--------+--------+